Browse Source

avformat/utils: preserve AV_PKT_FLAG_DISCARD in parse_packet

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.0
John Stebbins Michael Niedermayer 8 years ago
parent
commit
c84bc81158
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/utils.c

+ 1
- 0
libavformat/utils.c View File

@@ -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…
Cancel
Save