h264: reset num_reorder_frames if it is invalid