From 0fdd608828672dcc9aa091f6bc58befe65cf8ab4 Mon Sep 17 00:00:00 2001 From: Evgeny Shulgin Date: Sun, 11 Dec 2016 08:30:54 +0300 Subject: [PATCH] Fixed FPS switching (#510) --- src/lib_ccx/avc_functions.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib_ccx/avc_functions.c b/src/lib_ccx/avc_functions.c index 1902bc8f..61b45ca5 100644 --- a/src/lib_ccx/avc_functions.c +++ b/src/lib_ccx/avc_functions.c @@ -919,10 +919,9 @@ void slice_header (struct lib_cc_decode *ctx, unsigned char *heabuf, unsigned ch bottom_field_flag = u(&q1,1); dvprint("bottom_field_flag= % 4llX\n", bottom_field_flag); - // TODO - Do this right. // When bottom_field_flag is set the video is interlaced, // override current_fps. - current_fps = framerates_values[7]; + current_fps = framerates_values[ctx->current_frame_rate]; } }