diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 00f76e5575..fd3ce97fd3 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -498,7 +498,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt){ if(flags & FLAG_CODED){ length++; - flags |= needed_flags; + flags = needed_flags; } if((flags & needed_flags) != needed_flags)