From e54897f4e0176bc176026a2a237e83c624323f85 Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Mon, 26 Nov 2012 09:54:59 +0800 Subject: [PATCH] mpeg2enc: find the right frame_rate_code Signed-off-by: Xiang, Haihao --- test/encode/mpeg2enc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/encode/mpeg2enc.c b/test/encode/mpeg2enc.c index cc4d3ad..af23d8c 100644 --- a/test/encode/mpeg2enc.c +++ b/test/encode/mpeg2enc.c @@ -233,6 +233,7 @@ find_frame_rate_code(const VAEncSequenceParameterBufferMPEG2 *seq_param) if (abs(1000 * frame_rate_tab[i].value - 1000 * frame_rate_value) < delta) { code = frame_rate_tab[i].code; + delta = abs(1000 * frame_rate_tab[i].value - 1000 * frame_rate_value); } } -- 2.7.4