diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-03-25 02:20:51 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-03-27 03:16:18 +0100 |
commit | 4e806b326698e2bccec384876cd6a8403bbf4b7f (patch) | |
tree | ed6944edf3ccfff60053fb971702970e3cbf8478 /libavcodec/mpeg4videodec.c | |
parent | d256118b7e622c07167bbe044daba05c2326a6e3 (diff) | |
download | ffmpeg-4e806b326698e2bccec384876cd6a8403bbf4b7f.tar.gz |
avcodec/mpeg4videodec: Actually check av_buffer_replace()
Forgotten in 4f2becc2dc4668f837b5ba96c11c3426bc120ac0.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpeg4videodec.c')
-rw-r--r-- | libavcodec/mpeg4videodec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index 7d5af9b877..cb32f0e300 100644 --- a/libavcodec/mpeg4videodec.c +++ b/libavcodec/mpeg4videodec.c @@ -3795,12 +3795,10 @@ static int mpeg4_update_thread_context(AVCodecContext *dst, memcpy(s->sprite_shift, s1->sprite_shift, sizeof(s1->sprite_shift)); memcpy(s->sprite_traj, s1->sprite_traj, sizeof(s1->sprite_traj)); - ret = av_buffer_replace(&s->bitstream_buffer, s1->bitstream_buffer); - if (!init && s1->xvid_build >= 0) ff_xvid_idct_init(&s->m.idsp, dst); - return 0; + return av_buffer_replace(&s->bitstream_buffer, s1->bitstream_buffer); } static int mpeg4_update_thread_context_for_user(AVCodecContext *dst, |