mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
avcodec/rscc: 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
745f4bcc2c
commit
c62beba49a
1 changed files with 1 additions and 0 deletions
|
|
@ -324,6 +324,7 @@ static int rscc_decode_frame(AVCodecContext *avctx, void *data,
|
|||
}
|
||||
*got_frame = 1;
|
||||
|
||||
ret = avpkt->size;
|
||||
end:
|
||||
av_free(inflated_tiles);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue