Commit c869e00f authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/smvjpegdec: return the packet size instead of 0

Most decoders return the amount of data used.
This is more consistent
Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 0888c5a2
......@@ -200,9 +200,11 @@ static int smvjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_siz
s->picture[1]->linesize[i] = mjpeg_data->linesize[i];
ret = av_frame_ref(data, s->picture[1]);
if (ret < 0)
return ret;
}
return ret;
return avpkt->size;
}
static const AVClass smvjpegdec_class = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment