[FFmpeg-cvslog] avformat/utils: preserve AV_PKT_FLAG_DISCARD in parse_packet

John Stebbins git at videolan.org
Sat Nov 11 15:16:12 EET 2017


ffmpeg | branch: master | John Stebbins <jstebbins at jetheaddev.com> | Fri Nov 10 16:07:28 2017 -0800| [c84bc81158dab39598dcc72893ac4520dd95151e] | committer: Michael Niedermayer

avformat/utils: preserve AV_PKT_FLAG_DISCARD in parse_packet

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c84bc81158dab39598dcc72893ac4520dd95151e
---

 libavformat/utils.c | 1 +
 1 file changed, 1 insertion(+)

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;



More information about the ffmpeg-cvslog mailing list