avcodec/error_resilience: avoid pointer arithmetic with NULL
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 12 Oct 2014 02:46:55 +0000 (04:46 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 12 Oct 2014 02:49:08 +0000 (04:49 +0200)
commit20df02680c94df1dd74f2e69068cbf02cb98d290
tree974ff3c798af1e69f895a0015918a1bc0759f14d
parentbec077a1ab1fe19d8cb7a9cafd9731546d449c4b
avcodec/error_resilience: avoid pointer arithmetic with NULL

move the code after the existing NULL check
Fixes: signal_sigsegv_844d59_10_signal_sigsegv_a17bb7_366_mpegts_mpeg2video_mp2_dvbsub_topfield.rec

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/error_resilience.c