Should fix ticket #3958 (compilation with libvpx 1.2.0 and older) Signed-off-by: James Almer <jamr...@gmail.com> --- libavcodec/libvpxdec.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c index 8312460..e42bba4 100644 --- a/libavcodec/libvpxdec.c +++ b/libavcodec/libvpxdec.c @@ -68,6 +68,7 @@ static int set_pix_fmt(AVCodecContext *avctx, struct vpx_image *img) { case VPX_IMG_FMT_I420: avctx->pix_fmt = AV_PIX_FMT_YUV420P; return 0; +#ifdef CONFIG_LIBVPX_VP9_DECODER case VPX_IMG_FMT_I422: avctx->pix_fmt = AV_PIX_FMT_YUV422P; return 0; @@ -106,6 +107,7 @@ static int set_pix_fmt(AVCodecContext *avctx, struct vpx_image *img) { return AVERROR_INVALIDDATA; } #endif +#endif default: return AVERROR_INVALIDDATA; } -- 1.8.5.5 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel