changeset 8690:6c220a238087 libavcodec

Use a constant instead of a magic number. Patch by Gwenol«± Beauchesne: gbeauchesne splitted minus desktop com
author benoit
date Fri, 30 Jan 2009 08:18:06 +0000
parents 59c2ae15dbb1
children 25aa5388fa97
files h263.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Fri Jan 30 06:38:46 2009 +0000
+++ b/h263.c	Fri Jan 30 08:18:06 2009 +0000
@@ -5491,7 +5491,7 @@
 
     if ((s->vol_control_parameters=get_bits1(gb))) { /* vol control parameter */
         int chroma_format= get_bits(gb, 2);
-        if(chroma_format!=1){
+        if(chroma_format!=CHROMA_420){
             av_log(s->avctx, AV_LOG_ERROR, "illegal chroma format\n");
         }
         s->low_delay= get_bits1(gb);