Commit 79c1cdd9 authored by Michael Niedermayer's avatar Michael Niedermayer

mpeg4_update_thread_context: copy the whole mpeg4 specific context instead of variables one by one

This simplifies the code
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3e5cd34c
...@@ -2680,14 +2680,7 @@ static int mpeg4_update_thread_context(AVCodecContext *dst, ...@@ -2680,14 +2680,7 @@ static int mpeg4_update_thread_context(AVCodecContext *dst,
if (ret < 0) if (ret < 0)
return ret; return ret;
s->shape = s1->shape; memcpy(((uint8_t*)s) + sizeof(MpegEncContext), ((uint8_t*)s1) + sizeof(MpegEncContext), sizeof(Mpeg4DecContext) - sizeof(MpegEncContext));
s->time_increment_bits = s1->time_increment_bits;
s->vol_sprite_usage = s1->vol_sprite_usage;
s->rvlc = s1->rvlc;
s->divx_version = s1->divx_version;
s->divx_build = s1->divx_build;
s->xvid_build = s1->xvid_build;
s->lavc_build = s1->lavc_build;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment