Commit fc798190 authored by benoit's avatar benoit

Use a constant instead of a magic number.

Patch by Gwenolé Beauchesne: gbeauchesne splitted minus desktop com


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16856 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 75426614
...@@ -5491,7 +5491,7 @@ static int decode_vol_header(MpegEncContext *s, GetBitContext *gb){ ...@@ -5491,7 +5491,7 @@ static int decode_vol_header(MpegEncContext *s, GetBitContext *gb){
if ((s->vol_control_parameters=get_bits1(gb))) { /* vol control parameter */ if ((s->vol_control_parameters=get_bits1(gb))) { /* vol control parameter */
int chroma_format= get_bits(gb, 2); 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"); av_log(s->avctx, AV_LOG_ERROR, "illegal chroma format\n");
} }
s->low_delay= get_bits1(gb); s->low_delay= get_bits1(gb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment