smvjpegdec: only extract picture when a picture has been decoded.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 7 Jun 2013 12:20:59 +0000 (14:20 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 7 Jun 2013 12:36:45 +0000 (14:36 +0200)
commitbce2ed55596a603b0dd35e000e064b9a40eee542
tree26b1546765a19f72840212249d4fe331bce0b733
parent369684f1092427a3cfa1a62b43f2952a5554061d
smvjpegdec: only extract picture when a picture has been decoded.

Fixes null pointer dereference

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