Handle 2D/3D mismatches in the player (#2409).
authorCarl Hetherington <cth@carlh.net>
Wed, 11 Jan 2023 22:00:25 +0000 (23:00 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 1 Feb 2023 00:12:38 +0000 (01:12 +0100)
commit2f12058c535045cecc226fe47b3d60da8851a862
treecb4742d5fcd789cb34aba5791e5c7886de675d08
parent82eeb266e009961b766bf7a5fc66fb8ba75a5d2a
Handle 2D/3D mismatches in the player (#2409).

Previously if there was 2D content in a 3D project (or vice versa)
the player would emit the video anyway and the encoder would have
to deal with it.

Since previously the FFmpeg encoder did not deal with this quite
right, it seems to make sense to move the logic into the player
so that neither encoder has to worry about it.
src/lib/player.cc
src/lib/writer.cc
test/ffmpeg_encoder_test.cc
test/player_test.cc