1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

error_resilience: remove a useless if() and FIXME

pp_time is never set for h264
This commit is contained in:
Anton Khirnov 2013-02-02 17:23:19 +01:00
parent 9782c778a2
commit c5fcdb4402

View File

@ -1157,11 +1157,7 @@ void ff_er_frame_end(MpegEncContext *s)
int time_pp = s->pp_time; int time_pp = s->pp_time;
int time_pb = s->pb_time; int time_pb = s->pb_time;
if (s->avctx->codec_id == AV_CODEC_ID_H264) { ff_thread_await_progress(&s->next_picture_ptr->f, mb_y, 0);
// FIXME
} else {
ff_thread_await_progress(&s->next_picture_ptr->f, mb_y, 0);
}
s->mv[0][0][0] = s->next_picture.f.motion_val[0][xy][0] * time_pb / time_pp; s->mv[0][0][0] = s->next_picture.f.motion_val[0][xy][0] * time_pb / time_pp;
s->mv[0][0][1] = s->next_picture.f.motion_val[0][xy][1] * time_pb / time_pp; s->mv[0][0][1] = s->next_picture.f.motion_val[0][xy][1] * time_pb / time_pp;
s->mv[1][0][0] = s->next_picture.f.motion_val[0][xy][0] * (time_pb - time_pp) / time_pp; s->mv[1][0][0] = s->next_picture.f.motion_val[0][xy][0] * (time_pb - time_pp) / time_pp;