Fix libx264 profile listing
authorMahendra M <mahendra.m@gmail.com>
Sat, 1 Sep 2012 13:35:44 +0000 (19:05 +0530)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 1 Sep 2012 13:59:04 +0000 (15:59 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libx264.c

index 45fe2ac..6eddf7f 100644 (file)
@@ -453,7 +453,7 @@ static av_cold int X264_init(AVCodecContext *avctx)
             av_log(avctx, AV_LOG_ERROR, "Error setting profile %s.\n", x4->profile);
             av_log(avctx, AV_LOG_INFO, "Possible profiles:");
             for (i = 0; x264_profile_names[i]; i++)
             av_log(avctx, AV_LOG_ERROR, "Error setting profile %s.\n", x4->profile);
             av_log(avctx, AV_LOG_INFO, "Possible profiles:");
             for (i = 0; x264_profile_names[i]; i++)
-                av_log(avctx, AV_LOG_INFO, " %s", x264_preset_names[i]);
+                av_log(avctx, AV_LOG_INFO, " %s", x264_profile_names[i]);
             av_log(avctx, AV_LOG_INFO, "\n");
             return AVERROR(EINVAL);
         }
             av_log(avctx, AV_LOG_INFO, "\n");
             return AVERROR(EINVAL);
         }