avcodec/decode: also update consumed bytes on last_pkt_props->size
authorJames Almer <jamrial@gmail.com>
Sun, 23 Apr 2017 15:51:52 +0000 (12:51 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 23 Apr 2017 15:52:48 +0000 (12:52 -0300)
libavcodec/decode.c

index e63384b..debbe36 100644 (file)
@@ -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;