avformat/utils: preserve AV_PKT_FLAG_DISCARD in parse_packet
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
9194d3d380
commit
c84bc81158
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user