Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37505445
en ru br
Репозитории ALT
S:1.1.1-alt6
5.1: 1.1.1-alt1
4.1: 1.0-alt0.beta3
4.0: 1.0alpha7-alt1
3.0: 1.0alpha4-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libtheora

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: 0001-Correct-an-operator-precedence-error-in-the-visualiz.patch
Скачать


From 5b748bc52da235661f0220b4e04a597119c8f2b4 Mon Sep 17 00:00:00 2001
From: Tim Terriberry <tterribe@xiph.org>
Date: Fri, 20 May 2011 20:57:21 +0000
Subject: [PATCH 1/5] Correct an operator precedence error in the visualization
 code.
Fixes #1751.
svn path=/trunk/theora/; revision=17992
---
 lib/decode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/decode.c b/lib/decode.c
index ed0719f..b1efb15 100644
--- a/lib/decode.c
+++ b/lib/decode.c
@@ -2706,8 +2706,8 @@ int th_decode_ycbcr_out(th_dec_ctx *_dec,th_ycbcr_buffer _ycbcr){
                 }break;
                 /*Plus:*/
                 case 1:{
-                  if(bi&2==0)yp-=2;
-                  if(bi&1==0)xp-=2;
+                  if((bi&2)==0)yp-=2;
+                  if((bi&1)==0)xp-=2;
                   cairo_move_to(c,xp+4.5,yp+2.5);
                   cairo_line_to(c,xp+4.5,yp+6.5);
                   cairo_move_to(c,xp+2.5,yp+4.5);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin