Avoid threading issue in both ffmpeg and libav that prevents decoding embedded png's