diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-02-28 04:48:22 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-27 07:20:59 +0100 |
commit | 3865b1952e5cf993b016d83ba78fe1deb63bbfad (patch) | |
tree | 5af9c8be1626a2261f2da4f4fcd342fb03fcb2bf /libavcodec/wma_freqs.c | |
parent | 6ab290e20a55eead17d6fd21c031028f101c9662 (diff) | |
download | ffmpeg-3865b1952e5cf993b016d83ba78fe1deb63bbfad.tar.gz |
avformat/mxfenc: Never set codec_ul UID to NULL
mxf distinguishes codec profiles by different UIDs and therefore needs
to check that the input is actually compatible with mxf (i.e. if there
is a defined UID for it). If not, then sometimes the UID would be set to
NULL and writing the (video) packet would fail. Yet the following audio
packet would trigger writing the header (which has been postponed because
the UID is not known at the start) and if the UID is NULL, this can lead
to segfaults. This commit therefore stops setting the UID to NULL if the
input is incompatible with mxf (it has initially been set to a generic
value in mxf_write_header()).
Fixes #7993.
Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 5400e4a50c61e53e1bc50b3e77201649bbe9c510)
Diffstat (limited to 'libavcodec/wma_freqs.c')
0 files changed, 0 insertions, 0 deletions