[FFmpeg-cvslog] avcodec/decode: also update consumed bytes on last_pkt_props->size

James Almer git at videolan.org
Sun Apr 23 18:55:34 EEST 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Apr 23 12:51:52 2017 -0300| [16c88465a1c1c2cb003590d667c4341c8da9372a] | committer: James Almer

avcodec/decode: also update consumed bytes on last_pkt_props->size

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=16c88465a1c1c2cb003590d667c4341c8da9372a
---

 libavcodec/decode.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index e63384b910..debbe36e0f 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -580,6 +580,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
 
         pkt->data                += consumed;
         pkt->size                -= consumed;
+        avci->last_pkt_props->size -= consumed; // See extract_packet_props() comment.
         pkt->pts                  = AV_NOPTS_VALUE;
         pkt->dts                  = AV_NOPTS_VALUE;
         avci->last_pkt_props->pts = AV_NOPTS_VALUE;



More information about the ffmpeg-cvslog mailing list