VE-12 / VE-13: make video overlay logic match what's in the PHP code.