From 9b7a22ab0a5cc3ce39f3718dc22bc2f80488346a Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Tue, 9 Dec 2014 22:31:41 +0100 Subject: [PATCH] Avoid threading issue in both ffmpeg and libav that prevents decoding embedded png's --- src/artwork.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/artwork.c b/src/artwork.c index e191ce00..2f87f122 100644 --- a/src/artwork.c +++ b/src/artwork.c @@ -181,6 +181,9 @@ artwork_rescale(AVFormatContext *src_ctx, int s, int out_w, int out_h, struct ev src = src_ctx->streams[s]->codec; + // Avoids threading issue in both ffmpeg and libav that prevents decoding embedded png's + src->thread_count = 1; + img_decoder = avcodec_find_decoder(src->codec_id); if (!img_decoder) {