From d2062ff64d01db5c3c0edd39bd519e3aa5c4f2f0 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 11 Aug 2007 11:10:29 +0000 Subject: [PATCH] do not remove FLAG_CODED Originally committed as revision 10067 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/nutenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index d0005f85e8..00f76e5575 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -435,7 +435,7 @@ static int get_needed_flags(NUTContext *nut, StreamContext *nus, FrameCode *fc, if(FFABS(pkt->pts - nus->last_pts) > nus->max_pts_distance) flags |= FLAG_CHECKSUM; - return flags; + return flags | (fc->flags & FLAG_CODED); } static int write_packet(AVFormatContext *s, AVPacket *pkt){