Forgotten in 4f2becc2dc4668f837b5ba96c11c3426bc120ac0.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -3795,12 +3795,10 @@ static int mpeg4_update_thread_context(AVCodecContext *dst, · 3794 unmodified lines | ||
| 3795 | 3795 | memcpy(s->sprite_shift, s1->sprite_shift, sizeof(s1->sprite_shift)); |
| 3796 | 3796 | memcpy(s->sprite_traj, s1->sprite_traj, sizeof(s1->sprite_traj)); |
| 3797 | 3797 | |
| 3798 | − ret = av_buffer_replace(&s->bitstream_buffer, s1->bitstream_buffer); | |
| 3799 | − | |
| 3800 | 3798 | if (!init && s1->xvid_build >= 0) |
| 3801 | 3799 | ff_xvid_idct_init(&s->m.idsp, dst); |
| 3802 | 3800 | |
| 3803 | − return 0; | |
| 3801 | + return av_buffer_replace(&s->bitstream_buffer, s1->bitstream_buffer); | |
| 3804 | 3802 | } |
| 3805 | 3803 | |
| 3806 | 3804 | static int mpeg4_update_thread_context_for_user(AVCodecContext *dst, |