Message ID | 20171111000728.12805-1-jstebbins@jetheaddev.com |
---|---|
State | New |
Headers | show |
On Fri, Nov 10, 2017 at 04:07:28PM -0800, John Stebbins wrote: > --- > libavformat/utils.c | 1 + > 1 file changed, 1 insertion(+) will apply thanks [...]
diff --git a/libavformat/utils.c b/libavformat/utils.c index 2b2411ffe7..93a5a00105 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1457,6 +1457,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;