mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-23 11:32:34 -05:00
Avoid threading issue in both ffmpeg and libav that prevents decoding embedded png's
This commit is contained in:
parent
2b16dd493e
commit
9b7a22ab0a
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user