[FFmpeg-devel] [PATCH 1/7] avcodec/rscc: return the packet size instead of 0

Michael Niedermayer michael at niedermayer.cc
Thu Dec 15 22:21:07 EET 2016


Most decoders return the amount of data used.
This is more consistent

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavcodec/rscc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/rscc.c b/libavcodec/rscc.c
index d01f05c022..f13706cd75 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;
-- 
2.11.0



More information about the ffmpeg-devel mailing list