1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/mpeg4videodec: Actually check av_buffer_replace()

Forgotten in 4f2becc2dc.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-03-25 02:20:51 +01:00
parent d256118b7e
commit 4e806b3266

View File

@ -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,