avcodec/mpegvideo_enc: Remove redundant unref+ref

Setting current_picture will already be done in frame_start().

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
release/5.1
Andreas Rheinhardt 3 years ago
parent 37250f7f64
commit 451300d0e8
  1. 5
      libavcodec/mpegvideo_enc.c

@ -1529,11 +1529,6 @@ no_output_pic:
s->new_picture->data[i] += INPLACE_OFFSET;
}
}
ff_mpeg_unref_picture(s->avctx, &s->current_picture);
if ((ret = ff_mpeg_ref_picture(s->avctx, &s->current_picture,
s->current_picture_ptr)) < 0)
return ret;
s->picture_number = s->new_picture->display_picture_number;
}
return 0;

Loading…
Cancel
Save