ffmpeg: Fix stored encoder metadata with -bitexact
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 30 Oct 2017 03:08:17 +0000 (04:08 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 30 Oct 2017 20:32:26 +0000 (21:32 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
fftools/ffmpeg.c

index cabc686..ade8df6 100644 (file)
@@ -3120,7 +3120,7 @@ static void set_encoder_id(OutputFile *of, OutputStream *ost)
     uint8_t *encoder_string;
     int encoder_string_len;
     int format_flags = 0;
-    int codec_flags = 0;
+    int codec_flags = ost->enc_ctx->flags;
 
     if (av_dict_get(ost->st->metadata, "encoder",  NULL, 0))
         return;