comparison h261dec.c @ 7461:5bcf597a321c libavcodec

do not fail on qscale==0 if error resilience is high, fix broken quicktime h261, lotr.mov
author bcoudurier
date Sat, 02 Aug 2008 22:51:49 +0000
parents e943e1409077
children 8195c970d077
comparison
equal deleted inserted replaced
7460:2ced44037814 7461:5bcf597a321c
131 /* GEI */ 131 /* GEI */
132 while (get_bits1(&s->gb) != 0) { 132 while (get_bits1(&s->gb) != 0) {
133 skip_bits(&s->gb, 8); 133 skip_bits(&s->gb, 8);
134 } 134 }
135 135
136 if(s->qscale==0) 136 if(s->qscale==0) {
137 return -1; 137 av_log(s->avctx, AV_LOG_ERROR, "qscale has forbidden 0 value\n");
138 if (s->avctx->error_resilience >= FF_ER_COMPLIANT)
139 return -1;
140 }
138 141
139 // For the first transmitted macroblock in a GOB, MBA is the absolute address. For 142 // For the first transmitted macroblock in a GOB, MBA is the absolute address. For
140 // subsequent macroblocks, MBA is the difference between the absolute addresses of 143 // subsequent macroblocks, MBA is the difference between the absolute addresses of
141 // the macroblock and the last transmitted macroblock. 144 // the macroblock and the last transmitted macroblock.
142 h->current_mba = 0; 145 h->current_mba = 0;