diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-06-16 19:06:10 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-06-16 19:06:10 +0200 |
commit | 49a63c6c6609c8ccb6c5c5f7474c9900a7e2cb8f (patch) | |
tree | 23fa01afaca0e77a58d56e75c0d64a4aec6f42f8 /libavcodec/rangecoder.c | |
parent | 9ff0fbbc0ad095f4364b4d86ec7958908c6d737d (diff) | |
download | ffmpeg-49a63c6c6609c8ccb6c5c5f7474c9900a7e2cb8f.tar.gz |
avformat/matroskaenc: Reset cur_master_element when discarding master
Before this patch the muxer writes an invalid file
(namely one in which the Projection master is a child of
the Colour element) if the following conditions are met:
a) The stream contains AVMasteringDisplayMetadata without primaries
and luminance (i.e. useless AVMasteringDisplayMetadata).
b) The stream contains AV_PKT_DATA_SPHERICAL side data.
c) All the colour elements of the stream are equal to default
(i.e. unknown).
Fortunately these conditions are very unlikely to be met.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/rangecoder.c')
0 files changed, 0 insertions, 0 deletions