git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0699722
)
avcodec/decode: also update consumed bytes on last_pkt_props->size
author
James Almer
<jamrial@gmail.com>
Sun, 23 Apr 2017 15:51:52 +0000
(12:51 -0300)
committer
James Almer
<jamrial@gmail.com>
Sun, 23 Apr 2017 15:52:48 +0000
(12:52 -0300)
libavcodec/decode.c
patch
|
blob
|
history
diff --git
a/libavcodec/decode.c
b/libavcodec/decode.c
index
e63384b
..
debbe36
100644
(file)
--- 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;