avcodec/mpeg12dec: Set dimensions in mpeg1_decode_sequence() only in absence of errors
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 1 Sep 2015 00:45:10 +0000 (02:45 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 1 Sep 2015 00:47:11 +0000 (02:47 +0200)
commitb54e03c9dc2a05324c08b503bfe7535c49c0f281
tree7f7f8f13a8f03e9a3f608db7d653be8232b3bccd
parenta047ccbb9fad2c33db7ebc40b95e34ea6ee89c21
avcodec/mpeg12dec: Set dimensions in mpeg1_decode_sequence() only in absence of errors

Fixes assertion failure
Fixes: 56dcafde14a8397161bb61a16c511179/signal_sigabrt_7ffff6ac8cc9_686_cov_1897408623_microsoft_new_way_to_shove_mpeg2_in_asf.dvr_ms

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpeg12dec.c