diff mbox

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

Message ID 20171111000728.12805-1-jstebbins@jetheaddev.com
State New
Headers show

Commit Message

John Stebbins Nov. 11, 2017, 12:07 a.m. UTC
---
 libavformat/utils.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Niedermayer Nov. 11, 2017, 12:17 p.m. UTC | #1
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 mbox

Patch

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;