Signed-off-by: Michael Niedermayer <mich...@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

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to