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

Submitted by Michael Niedermayer on Dec. 15, 2016, 8:21 p.m.

Details

Message ID 20161215202113.20807-6-michael@niedermayer.cc
State New
Headers show

Commit Message

Michael Niedermayer Dec. 15, 2016, 8:21 p.m.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavcodec/rawdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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)