ffmpeg: stop using deprecated codec flags
authorJames Almer <jamrial@gmail.com>
Sun, 26 Mar 2017 00:34:52 +0000 (21:34 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 26 Mar 2017 00:37:05 +0000 (21:37 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
ffmpeg.c

index 532db80..62e7d82 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1541,7 +1541,7 @@ static void print_final_stats(int64_t total_size)
         }
         extra_size += ost->enc_ctx->extradata_size;
         data_size  += ost->data_size;
-        if (   (ost->enc_ctx->flags & (AV_CODEC_FLAG_PASS1 | CODEC_FLAG_PASS2))
+        if (   (ost->enc_ctx->flags & (AV_CODEC_FLAG_PASS1 | AV_CODEC_FLAG_PASS2))
             != AV_CODEC_FLAG_PASS1)
             pass1_used = 0;
     }