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-16 22:48:45 +0100 |
commit | 5400e4a50c61e53e1bc50b3e77201649bbe9c510 (patch) | |
tree | d1eae392bad56ad42746e9860607278a36db8723 /libavformat/jvdec.c | |
parent | a34333f43bbfffcbd0b440ce33a8ce10d2b31c06 (diff) | |
download | ffmpeg-5400e4a50c61e53e1bc50b3e77201649bbe9c510.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>
Diffstat (limited to 'libavformat/jvdec.c')
0 files changed, 0 insertions, 0 deletions