Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
avcodec/error_resilience: remove unneeded and disabled code
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
  • Loading branch information
michaelni committed Mar 18, 2016
1 parent 5694b28 commit a7b8a6e
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions libavcodec/error_resilience.c
Expand Up @@ -582,24 +582,9 @@ static void guess_mv(ERContext *s)
/* zero MV */
pred_count++;

if (!fixed[mb_xy] && 0) {
if (s->avctx->codec_id == AV_CODEC_ID_H264) {
// FIXME
} else {
ff_thread_await_progress(s->last_pic.tf,
mb_y, 0);
}
if (!s->last_pic.motion_val[0] ||
!s->last_pic.ref_index[0])
goto skip_last_mv;
prev_x = s->last_pic.motion_val[0][mot_index][0];
prev_y = s->last_pic.motion_val[0][mot_index][1];
prev_ref = s->last_pic.ref_index[0][4 * mb_xy];
} else {
prev_x = s->cur_pic.motion_val[0][mot_index][0];
prev_y = s->cur_pic.motion_val[0][mot_index][1];
prev_ref = s->cur_pic.ref_index[0][4 * mb_xy];
}
prev_x = s->cur_pic.motion_val[0][mot_index][0];
prev_y = s->cur_pic.motion_val[0][mot_index][1];
prev_ref = s->cur_pic.ref_index[0][4 * mb_xy];

/* last MV */
mv_predictor[pred_count][0] = prev_x;
Expand Down

0 comments on commit a7b8a6e

Please sign in to comment.