From: John Stebbins Date: Sat, 11 Nov 2017 00:07:28 +0000 (-0800) Subject: avformat/utils: preserve AV_PKT_FLAG_DISCARD in parse_packet X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c84bc81158dab39598dcc72893ac4520dd95151e;p=ffmpeg avformat/utils: preserve AV_PKT_FLAG_DISCARD in parse_packet Signed-off-by: Michael Niedermayer --- diff --git a/libavformat/utils.c b/libavformat/utils.c index d45a6b55a7e..3fd17dd771c 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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;