ffmpeg | branch: master | Michael Niedermayer <[email protected]> | 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 <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>

> 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;

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to