From 907e42f1cb64e2e7c946b056db5ceb724d0aadd4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marian=20=C4=8Eurkovi=C4=8D?= Date: Tue, 8 Sep 2009 15:34:20 +0200 Subject: [PATCH] Fix HDTV height for H.264 streams with correct PAR. --- src/input/decoder.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/input/decoder.c b/src/input/decoder.c index 1209b53d61..89efbfce9b 100644 --- a/src/input/decoder.c +++ b/src/input/decoder.c @@ -2285,8 +2285,11 @@ static picture_t *vout_new_buffer( decoder_t *p_dec ) var_CreateGetBool( p_dec, "hdtv-fix" ) ) { p_dec->fmt_out.video.i_visible_height = 1080; - p_dec->fmt_out.video.i_sar_num *= 135; - p_dec->fmt_out.video.i_sar_den *= 136; + if( !(p_dec->fmt_out.video.i_sar_num % 136)) + { + p_dec->fmt_out.video.i_sar_num *= 135; + p_dec->fmt_out.video.i_sar_den *= 136; + } msg_Warn( p_dec, "Fixing broken HDTV stream (display_height=1088)"); } -- 2.11.4.GIT