From 396edc9ad8b06873da978065e29deab4150b3310 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Wed, 23 Feb 2011 19:00:59 +0100 Subject: [PATCH] Use av_guess_format() 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 da6342c2..a5553d98 100644 --- a/src/artwork.c +++ b/src/artwork.c @@ -142,7 +142,12 @@ artwork_rescale(AVFormatContext *src_ctx, int s, int out_w, int out_h, struct ev } /* Set up output */ +#if LIBAVFORMAT_VERSION_MAJOR >= 53 || (LIBAVFORMAT_VERSION_MAJOR == 52 && LIBAVFORMAT_VERSION_MINOR >= 45) + /* FFmpeg 0.6 */ + dst_fmt = av_guess_format("image2", NULL, NULL); +#else dst_fmt = guess_format("image2", NULL, NULL); +#endif if (!dst_fmt) { DPRINTF(E_LOG, L_ART, "ffmpeg image2 muxer not available\n");