[FFmpeg-devel] [PATCH 6/7] avcodec/rawdec: Return the packet size on decoder not potentially internal buffer size

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


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

diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index e53eb2eacc..f281c98720 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -479,7 +479,7 @@ static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame,
     }
 
     *got_frame = 1;
-    return buf_size;
+    return avpkt->size;
 }
 
 static av_cold int raw_close_decoder(AVCodecContext *avctx)
-- 
2.11.0



More information about the ffmpeg-devel mailing list