summaryrefslogtreecommitdiff
path: root/libavcodec/libx264.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-10-04 17:42:45 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-10-04 17:43:24 +0200
commitaaf65bc2a5cb0176bdb47b17d20554a69ef49d07 (patch)
treecb5d4a2820dfb1708007173ef15f4a48ac8b9211 /libavcodec/libx264.c
parent9734a7a1de3043f012ad0f1ef11027d9488067e6 (diff)
lavc/libx264: Fix compilation with libx264 version < 142.
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r--libavcodec/libx264.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 7839248590..5952a0df1e 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -533,7 +533,12 @@ static av_cold int X264_init(AVCodecContext *avctx)
x4->params.b_vfr_input = 0;
}
if (x4->avcintra_class >= 0)
+#if X264_BUILD >= 142
x4->params.i_avcintra_class = x4->avcintra_class;
+#else
+ av_log(avctx, AV_LOG_ERROR,
+ "x264 too old for AVC Intra, at least version 142 needed\n");
+#endif
if (x4->b_bias != INT_MIN)
x4->params.i_bframe_bias = x4->b_bias;
if (x4->b_pyramid >= 0)