[FFmpeg-cvslog] avcodec/rscc: return the packet size instead of 0

Michael Niedermayer git at videolan.org
Thu Dec 15 23:30:06 EET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Dec 15 20:09:48 2016 +0100| [c62beba49a90cc14ed7a971ffa4d5b2c7f487d3a] | committer: Michael Niedermayer

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 at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c62beba49a90cc14ed7a971ffa4d5b2c7f487d3a
---

 libavcodec/rscc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/rscc.c b/libavcodec/rscc.c
index d01f05c..f13706c 100644
--- a/libavcodec/rscc.c
+++ b/libavcodec/rscc.c
@@ -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;



More information about the ffmpeg-cvslog mailing list