summaryrefslogtreecommitdiff
path: root/libavcodec/decode.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-04-23 12:51:52 -0300
committerJames Almer <jamrial@gmail.com>2017-04-23 12:52:48 -0300
commit16c88465a1c1c2cb003590d667c4341c8da9372a (patch)
tree474a84aa631bbf4e7b9018a0aa3b6c693b695c49 /libavcodec/decode.c
parent0699722ad050344c8bb04a7027849ec9e6e3ab90 (diff)
downloadffmpeg-16c88465a1c1c2cb003590d667c4341c8da9372a.tar.gz
avcodec/decode: also update consumed bytes on last_pkt_props->size
Diffstat (limited to 'libavcodec/decode.c')
-rw-r--r--libavcodec/decode.c1
1 files changed, 1 insertions, 0 deletions
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;