Use a constant instead of a magic number.

Patch by Gwenolé Beauchesne: gbeauchesne splitted minus desktop com

Originally committed as revision 16856 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Gwenole Beauchesne 2009-01-30 08:18:06 +00:00 committed by Benoit Fouet
parent 2ed421134e
commit 73f184936d

View File

@ -5491,7 +5491,7 @@ static int decode_vol_header(MpegEncContext *s, GetBitContext *gb){
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);