FFmpeg/tests/ref
Andreas Rheinhardt 884653ee5b avformat/matroskaenc: Don't add side-data to input stream
When muxing, the AVStreams' side-data is typically set
by the caller before avformat_write_header();
it is not documented to be else. Yet the Matroska muxer
added an AVStereo3D side data if certain metadata
was present:

Since commit 4d686fb721
(adding support for AVStereo3D stream side-data),
the Matroska muxer checked certain stream tags that
contain Matroska's StereoMode and (if they are present)
converted this value into an AVStereo3D struct that
gets attached to the AVStream (reusing a function from
the demuxer). Afterwards the AVStereo3D side data struct
(whether it has just been added by the muxer or not) gets
parsed and converted back into a Matroska StereoMode.

Besides being an API violation this change broke
StereoMode values without a corresponding AVStereo3D
(namely the anaglyph ones).

This commit fixes this: A StereoMode given via tags
is now used-as-is; if no such tag exists and an AVStereo3D
side data exists, it is converted into the corresponding
StereoMode (if possible). This approach also fixes
handling of the anaglyph ones; the changes to the
matroska-stereo_mode are due to this.

The new STEREOMODE_STEREO3D_MAPPING has been put to
good use for this.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2023-08-30 19:31:30 +02:00
..
acodec fftools/ffmpeg: propagate frame durations to packets when encoding 2023-04-19 21:12:03 +02:00
fate avformat/matroskaenc: Don't add side-data to input stream 2023-08-30 19:31:30 +02:00
lavf avformat/matroskaenc: Don't write \0 unnecessarily 2023-08-10 23:56:35 +02:00
lavf-fate avformat/matroskaenc: Don't write \0 unnecessarily 2023-08-10 23:56:35 +02:00
pixfmt fate/pixfmt: test xyz12le 2021-08-29 18:44:46 +02:00
seek avformat/matroskaenc: Don't write \0 unnecessarily 2023-08-10 23:56:35 +02:00
vsynth Add SMC vsynth tests 2023-07-02 21:08:59 +02:00