Setting current_picture will already be done in frame_start().
Unified · Split
| @@ -1529,11 +1529,6 @@ no_output_pic: · 1528 unmodified lines | ||
| 1529 | 1529 | s->new_picture->data[i] += INPLACE_OFFSET; |
| 1530 | 1530 | } |
| 1531 | 1531 | } |
| 1532 | − ff_mpeg_unref_picture(s->avctx, &s->current_picture); | |
| 1533 | − if ((ret = ff_mpeg_ref_picture(s->avctx, &s->current_picture, | |
| 1534 | − s->current_picture_ptr)) < 0) | |
| 1535 | − return ret; | |
| 1536 | − | |
| 1537 | 1532 | s->picture_number = s->new_picture->display_picture_number; |
| 1538 | 1533 | } |
| 1539 | 1534 | return 0; |