From cbc36054259f299ebdd94abacfdb70dcecc6f97e Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Wed, 23 Feb 2011 19:01:46 +0100 Subject: [PATCH] Use avcodec_decode_video2() when available (FFmpeg 0.6) --- src/artwork.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/artwork.c b/src/artwork.c index a5553d98..66f92599 100644 --- a/src/artwork.c +++ b/src/artwork.c @@ -279,7 +279,12 @@ artwork_rescale(AVFormatContext *src_ctx, int s, int out_w, int out_h, struct ev continue; } +#if LIBAVCODEC_VERSION_MAJOR >= 53 || (LIBAVCODEC_VERSION_MAJOR == 52 && LIBAVCODEC_VERSION_MINOR >= 32) + /* FFmpeg 0.6 */ + avcodec_decode_video2(src, i_frame, &have_frame, &pkt); +#else avcodec_decode_video(src, i_frame, &have_frame, pkt.data, pkt.size); +#endif break; }