X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmjpeg2jpeg_bsf.c;h=6f02bc033caaa073a9d2f7ebcdd589cdfda19122;hb=e4c8e1906440cb45bb662f0894281238ca150ace;hp=2d4cee2ac1bfc6fcb1c78946720fd36379bc90ca;hpb=53a9b164c560eba511cab60e9ba382f4d9af5980;p=ffmpeg diff --git a/libavcodec/mjpeg2jpeg_bsf.c b/libavcodec/mjpeg2jpeg_bsf.c index 2d4cee2ac1b..6f02bc033ca 100644 --- a/libavcodec/mjpeg2jpeg_bsf.c +++ b/libavcodec/mjpeg2jpeg_bsf.c @@ -86,6 +86,8 @@ static int mjpeg2jpeg_filter(AVBSFContext *ctx, AVPacket *out) uint8_t *output; ret = ff_bsf_get_packet(ctx, &in); + if (ret < 0) + return ret; if (in->size < 12) { av_log(ctx, AV_LOG_ERROR, "input is truncated\n");