lavc/dxv: Silence "Multiple ff_thread_finish_setup() calls" warnings.

This commit is contained in:
Carl Eugen Hoyos 2015-09-08 10:16:34 +02:00
parent 617d53f4c7
commit 84c9bf62b4
1 changed files with 2 additions and 1 deletions

View File

@ -397,7 +397,8 @@ static int dxv_decode(AVCodecContext *avctx, void *data,
ret = ff_thread_get_buffer(avctx, &tframe, 0); ret = ff_thread_get_buffer(avctx, &tframe, 0);
if (ret < 0) if (ret < 0)
return ret; return ret;
ff_thread_finish_setup(avctx); if (avctx->codec->update_thread_context)
ff_thread_finish_setup(avctx);
/* Now decompress the texture with the standard functions. */ /* Now decompress the texture with the standard functions. */
avctx->execute2(avctx, decompress_texture_thread, avctx->execute2(avctx, decompress_texture_thread,