mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
avformat/mxfdec: Check container_ul->desc before use
Fixes: CID1592939 Dereference after null check Sponsored-by: Sovereign Tech Fund Reviewed-by: Tomas Härdin <git@haerdin.se> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 4cab028bd0e381f2ed4ccb7f139407f1f6f537c0) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
0144448025
commit
691aa476d7
@ -2969,6 +2969,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
|
||||
if (container_ul->desc)
|
||||
av_dict_set(&st->metadata, "data_type", container_ul->desc, 0);
|
||||
if (mxf->eia608_extract &&
|
||||
container_ul->desc &&
|
||||
!strcmp(container_ul->desc, "vbi_vanc_smpte_436M")) {
|
||||
st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE;
|
||||
st->codecpar->codec_id = AV_CODEC_ID_EIA_608;
|
||||
|
Loading…
x
Reference in New Issue
Block a user