mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-27 13:30:45 +00:00
avcodec/smvjpegdec: return the packet size instead of 0
Most decoders return the amount of data used. This is more consistent Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
0888c5a242
commit
c869e00f88
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user