[FFmpeg-devel] [PATCH]Silence a warning when decoding hap
Carl Eugen Hoyos
cehoyos at ag.or.at
Mon Jun 29 23:28:04 CEST 2015
Hi!
Attached patch silences many lines of "Multiple ff_thread_finish_setup()
calls" when decoding hap.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/hapdec.c b/libavcodec/hapdec.c
index 6e3c138..e6b7d61 100644
--- a/libavcodec/hapdec.c
+++ b/libavcodec/hapdec.c
@@ -177,7 +177,8 @@ static int hap_decode(AVCodecContext *avctx, void *data,
ret = ff_thread_get_buffer(avctx, &tframe, 0);
if (ret < 0)
return ret;
- ff_thread_finish_setup(avctx);
+ if (avctx->codec->update_thread_context)
+ ff_thread_finish_setup(avctx);
/* Use the decompress function on the texture, one block per thread */
avctx->execute2(avctx, decompress_texture_thread, tframe.f, NULL, blocks);
More information about the ffmpeg-devel
mailing list