mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-30 19:32:13 +00:00
Merge commit 'c330eba84cf2370ad72423aa9e410e20afdc52e2'
* commit 'c330eba84cf2370ad72423aa9e410e20afdc52e2': lavf: preserve side data when parsing packets. Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
f6beb36115
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user