avcodec/mjpeg2jpeg_bsf: Check ff_bsf_get_packet success
authorJan Sebechlebsky <sebechlebskyjan@gmail.com>
Sun, 1 May 2016 23:51:25 +0000 (02:51 +0300)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 2 May 2016 02:10:03 +0000 (04:10 +0200)
commit0ff3489534ea8ee3bdaf2680a45300d21078bf3e
treef3d0be5385b1e85367d988bc17410b8bd744ca1d
parent1fee770a1cece01f1e31a3127f7039e784a449eb
avcodec/mjpeg2jpeg_bsf: Check ff_bsf_get_packet success

This fixes ticket #5487 - mjpeg2jpeg bitstream filter causes
segmentation fault with header-less mjpeg.

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mjpeg2jpeg_bsf.c