Commit c84bc811 authored by John Stebbins's avatar John Stebbins Committed by Michael Niedermayer

avformat/utils: preserve AV_PKT_FLAG_DISCARD in parse_packet

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 9194d3d3
......@@ -1458,6 +1458,7 @@ static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
out_pkt.pts = st->parser->pts;
out_pkt.dts = st->parser->dts;
out_pkt.pos = st->parser->pos;
out_pkt.flags |= pkt->flags & AV_PKT_FLAG_DISCARD;
if (st->need_parsing == AVSTREAM_PARSE_FULL_RAW)
out_pkt.pos = st->parser->frame_offset;
......
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