mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Fix multithreaded MPEG-4 decoding.
Regression since c10d498bfd
.
Unfortunately ff_thread_get_format can only be called from
a separate decode thread, running it during init will fail.
Fixes for that are welcome, for now just revert back to
calling avctx->get_format directly, which is correct
but having to decide on a case-by-case basis which approach
to use is a bit messy.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
7254afdf1c
commit
a39cd8766f
@ -64,7 +64,7 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx)
|
||||
if (avctx->codec->id == AV_CODEC_ID_MSS2)
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUV420P;
|
||||
else
|
||||
avctx->pix_fmt = ff_thread_get_format(avctx, avctx->codec->pix_fmts);
|
||||
avctx->pix_fmt = avctx->get_format(avctx, avctx->codec->pix_fmts);
|
||||
s->unrestricted_mv= 1;
|
||||
|
||||
/* select sub codec */
|
||||
|
Loading…
Reference in New Issue
Block a user