Commit f6beb361 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'c330eba8'

* commit 'c330eba8':
  lavf: preserve side data when parsing packets.
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 197e219c c330eba8
......@@ -1342,6 +1342,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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment