]> git.sesse.net Git - ffmpeg/commitdiff
error_resilience: remove a useless if() and FIXME
authorAnton Khirnov <anton@khirnov.net>
Sat, 2 Feb 2013 16:23:19 +0000 (17:23 +0100)
committerAnton Khirnov <anton@khirnov.net>
Wed, 6 Feb 2013 20:46:55 +0000 (21:46 +0100)
pp_time is never set for h264

libavcodec/error_resilience.c

index ae9ef6861742c33c7cdb8e46755412b44c732461..67552dfd821d447535b31645c1abea273f4d4e03 100644 (file)
@@ -1157,11 +1157,7 @@ void ff_er_frame_end(MpegEncContext *s)
                     int time_pp = s->pp_time;
                     int time_pb = s->pb_time;
 
-                    if (s->avctx->codec_id == AV_CODEC_ID_H264) {
-                        // FIXME
-                    } else {
-                        ff_thread_await_progress(&s->next_picture_ptr->f, mb_y, 0);
-                    }
+                    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][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;