comparison h263.c @ 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 0b13b33e175e
children 25aa5388fa97
comparison
equal deleted inserted replaced
8689:59c2ae15dbb1 8690:6c220a238087
5489 s->avctx->sample_aspect_ratio= pixel_aspect[s->aspect_ratio_info]; 5489 s->avctx->sample_aspect_ratio= pixel_aspect[s->aspect_ratio_info];
5490 } 5490 }
5491 5491
5492 if ((s->vol_control_parameters=get_bits1(gb))) { /* vol control parameter */ 5492 if ((s->vol_control_parameters=get_bits1(gb))) { /* vol control parameter */
5493 int chroma_format= get_bits(gb, 2); 5493 int chroma_format= get_bits(gb, 2);
5494 if(chroma_format!=1){ 5494 if(chroma_format!=CHROMA_420){
5495 av_log(s->avctx, AV_LOG_ERROR, "illegal chroma format\n"); 5495 av_log(s->avctx, AV_LOG_ERROR, "illegal chroma format\n");
5496 } 5496 }
5497 s->low_delay= get_bits1(gb); 5497 s->low_delay= get_bits1(gb);
5498 if(get_bits1(gb)){ /* vbv parameters */ 5498 if(get_bits1(gb)){ /* vbv parameters */
5499 get_bits(gb, 15); /* first_half_bitrate */ 5499 get_bits(gb, 15); /* first_half_bitrate */