avcodec/error_resilience: Remove write only ERContext.ref_count

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-03-24 23:26:08 +01:00
parent 50c35d069a
commit 1970ee1045
2 changed files with 0 additions and 3 deletions

View File

@ -81,7 +81,6 @@ typedef struct ERContext {
uint16_t pb_time;
int quarter_sample;
int partitioned_frame;
int ref_count;
void (*decode_mb)(void *opaque, int ref, int mv_dir, int mv_type,
int (*mv)[2][4][2],

View File

@ -776,8 +776,6 @@ end:
if (sl->ref_count[1])
ff_h264_set_erpic(&h->er.next_pic, sl->ref_list[1][0].parent);
h->er.ref_count = sl->ref_count[0];
ff_er_frame_end(&h->er);
if (use_last_pic)
memset(&sl->ref_list[0][0], 0, sizeof(sl->ref_list[0][0]));