do not remove FLAG_CODED
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Aug 2007 11:10:29 +0000 (11:10 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Aug 2007 11:10:29 +0000 (11:10 +0000)
Originally committed as revision 10067 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/nutenc.c

index d0005f8..00f76e5 100644 (file)
@@ -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){