Showing the changes to libavcodec/bink.c (1 of 31 files). Show all
Unified · Split
| @@ -1300,8 +1300,7 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *frame, · 1299 unmodified lines | |||
| 1300 | emms_c(); | 1300 | emms_c(); |
| 1301 | 1301 | ||
| 1302 | if (c->version > 'b') { | 1302 | if (c->version > 'b') { |
| 1303 | av_frame_unref(c->last); | 1303 | if ((ret = av_frame_replace(c->last, frame)) < 0) |
| 1304 | if ((ret = av_frame_ref(c->last, frame)) < 0) | ||
| 1305 | return ret; | 1304 | return ret; |
| 1306 | } | 1305 | } |
| 1307 | 1306 | ||