History

avcodec/mpeg4videodec: Actually check av_buffer_replace()

Forgotten in 4f2becc2dc4668f837b5ba96c11c3426bc120ac0.

Andreas Rheinhardt committed 1 year ago

Commit 4e806b31 parent d2561181 file · +1 −3Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/mpeg4videodec.c+1−3
@@ -3795,12 +3795,10 @@ static int mpeg4_update_thread_context(AVCodecContext *dst, · 3794 unmodified lines
37953795 memcpy(s->sprite_shift, s1->sprite_shift, sizeof(s1->sprite_shift));
37963796 memcpy(s->sprite_traj, s1->sprite_traj, sizeof(s1->sprite_traj));
37973797
3798− ret = av_buffer_replace(&s->bitstream_buffer, s1->bitstream_buffer);
3799−
38003798 if (!init && s1->xvid_build >= 0)
38013799 ff_xvid_idct_init(&s->m.idsp, dst);
38023800
3803− return 0;
3801+ return av_buffer_replace(&s->bitstream_buffer, s1->bitstream_buffer);
38043802 }
38053803
38063804 static int mpeg4_update_thread_context_for_user(AVCodecContext *dst,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t