Mercurial > libavcodec.hg
comparison msmpeg4.c @ 1651:ccf7c96a630f libavcodec
h263 modified quantization fix
author | michael |
---|---|
date | Wed, 03 Dec 2003 16:07:41 +0000 |
parents | 932d306bf1dc |
children | 07a484280a82 |
comparison
equal
deleted
inserted
replaced
1650:bdade3baabfc | 1651:ccf7c96a630f |
---|---|
1256 static int had_i=0; | 1256 static int had_i=0; |
1257 if(s->pict_type == I_TYPE) had_i=1; | 1257 if(s->pict_type == I_TYPE) had_i=1; |
1258 if(!had_i) return -1; | 1258 if(!had_i) return -1; |
1259 } | 1259 } |
1260 #endif | 1260 #endif |
1261 s->qscale = get_bits(&s->gb, 5); | 1261 s->chroma_qscale= s->qscale = get_bits(&s->gb, 5); |
1262 if(s->qscale==0){ | 1262 if(s->qscale==0){ |
1263 av_log(s->avctx, AV_LOG_ERROR, "invalid qscale\n"); | 1263 av_log(s->avctx, AV_LOG_ERROR, "invalid qscale\n"); |
1264 return -1; | 1264 return -1; |
1265 } | 1265 } |
1266 | 1266 |