changeset 5682:8bf94c994691 libavcodec

In case when any quantizer may occur, HALFPQ should be zero
author kostya
date Sat, 15 Sep 2007 09:23:58 +0000
parents ed3e9456f295
children dbc41b5a10e7
files vc1.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vc1.c	Sat Sep 15 02:44:28 2007 +0000
+++ b/vc1.c	Sat Sep 15 09:23:58 2007 +0000
@@ -342,6 +342,8 @@
                 break;
             case DQPROFILE_ALL_MBS:
                 v->dqbilevel = get_bits1(gb);
+                if(!v->dqbilevel)
+                    v->halfpq = 0;
             default: break; //Forbidden ?
             }
             if (v->dqbilevel || v->dqprofile != DQPROFILE_ALL_MBS)