projects
/
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:
268bb88
)
lavf: preserve side data when parsing packets.
author
Anton Khirnov
<anton@khirnov.net>
Fri, 17 May 2013 05:39:34 +0000
(07:39 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Tue, 28 May 2013 06:00:07 +0000
(08:00 +0200)
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
eb01886
..
f415eae
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-1062,6
+1062,13
@@
static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
if (!out_pkt.size)
continue;
+ if (pkt->side_data) {
+ out_pkt.side_data = pkt->side_data;
+ out_pkt.side_data_elems = pkt->side_data_elems;
+ pkt->side_data = NULL;
+ pkt->side_data_elems = 0;
+ }
+
/* set the duration */
out_pkt.duration = 0;
if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {