diff options
author | John Stebbins <jstebbins@jetheaddev.com> | 2017-11-10 16:07:28 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-11-11 14:15:15 +0100 |
commit | c84bc81158dab39598dcc72893ac4520dd95151e (patch) | |
tree | 3edb29a47ff55c7e6dde77ea8c1724b684cbf377 /libavformat/utils.c | |
parent | 9194d3d3806f47941109a82ef1ff1f704e8e5b24 (diff) | |
download | ffmpeg-c84bc81158dab39598dcc72893ac4520dd95151e.tar.gz |
avformat/utils: preserve AV_PKT_FLAG_DISCARD in parse_packet
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index d45a6b55a7..3fd17dd771 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; |