diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-05-17 07:39:34 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-05-28 08:00:07 +0200 |
commit | c330eba84cf2370ad72423aa9e410e20afdc52e2 (patch) | |
tree | 16940c40f82e14b02ba08776b8a4b72d6cfc8e74 | |
parent | 268bb88544d9a5256992a9817e60972461359865 (diff) | |
download | ffmpeg-c330eba84cf2370ad72423aa9e410e20afdc52e2.tar.gz |
lavf: preserve side data when parsing packets.
-rw-r--r-- | libavformat/utils.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index eb0188655a..f415eae45c 100644 --- 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) { |