aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-29 03:54:06 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-10-29 03:54:49 +0100
commitc1e035ea89c16b8da91fae6983973a7186e138f6 (patch)
treedc056ae358a584ad56f8a3c7e2fcde429d60afff
parent5b864470808a352ff7ccfbe44eae3eeae2cccd6e (diff)
downloadffmpeg-c1e035ea89c16b8da91fae6983973a7186e138f6.tar.gz
avformat/mxfdec: fix null pointer dereference
Fixes: signal_sigsegv_b5b3d4_2_001.mxf Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mxfdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 8da87e4eff..b533e2ae3b 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -1457,7 +1457,7 @@ static int mxf_parse_physical_source_package(MXFContext *mxf, MXFTrack *source_t
break;
/* the name of physical source package is name of the reel or tape */
- if (physical_package->name[0])
+ if (physical_package->name && physical_package->name[0])
av_dict_set(&st->metadata, "reel_name", physical_package->name, 0);
/* the source timecode is calculated by adding the start_position of the sourceclip from the file source package track