From 597b8a355002306486c5d4a19890bb403b5d3ded Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 29 Nov 2013 17:39:57 +0100 Subject: Take care of some libavutil deprecations, drop support for FFmpeg 1.0 PIX_FMT_* -> AV_PIX_FMT_* (except some pixdesc constants) enum PixelFormat -> enum AVPixelFormat Losen some version checks in certain newer pixel formats. av_pix_fmt_descriptors -> av_pix_fmt_desc_get This removes support for FFmpeg 1.0.x, which is even older than Libav 9.x. Support for it probably was already broken, and its libswresample was rejected by our build system anyway because it's broken. Mostly untested; it does compile with Libav 9.9. --- video/decode/lavc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/decode/lavc.h') diff --git a/video/decode/lavc.h b/video/decode/lavc.h index 2fdfae41f1..5007b80a0f 100644 --- a/video/decode/lavc.h +++ b/video/decode/lavc.h @@ -27,7 +27,7 @@ typedef struct lavc_ctx { AVCodecContext *avctx; AVFrame *pic; struct vd_lavc_hwdec *hwdec; - enum PixelFormat pix_fmt; + enum AVPixelFormat pix_fmt; int do_hw_dr1; int best_csp; struct mp_image_params image_params; -- cgit v1.2.3