Merge commit 'f89d76c103'
* commit 'f89d76c103':
mpeg4video: Initialize xvididct for all threads
Conflicts:
libavcodec/mpeg4videodec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
2aeeb3ba1f
1 changed files with 4 additions and 0 deletions
|
|
@ -2687,6 +2687,7 @@ static int mpeg4_update_thread_context(AVCodecContext *dst,
|
|||
{
|
||||
Mpeg4DecContext *s = dst->priv_data;
|
||||
const Mpeg4DecContext *s1 = src->priv_data;
|
||||
int init = s->m.context_initialized;
|
||||
|
||||
int ret = ff_mpeg_update_thread_context(dst, src);
|
||||
|
||||
|
|
@ -2695,6 +2696,9 @@ static int mpeg4_update_thread_context(AVCodecContext *dst,
|
|||
|
||||
memcpy(((uint8_t*)s) + sizeof(MpegEncContext), ((uint8_t*)s1) + sizeof(MpegEncContext), sizeof(Mpeg4DecContext) - sizeof(MpegEncContext));
|
||||
|
||||
if (CONFIG_MPEG4_DECODER && !init && s1->xvid_build >= 0)
|
||||
ff_xvididct_init(&s->m.idsp, dst);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue