# HG changeset patch # User bcoudurier # Date 1217717509 0 # Node ID 5bcf597a321ca255d6e9f4dd6f510af823f32720 # Parent 2ced44037814b244e172618cef0b3b8a3144530a do not fail on qscale==0 if error resilience is high, fix broken quicktime h261, lotr.mov diff -r 2ced44037814 -r 5bcf597a321c h261dec.c --- a/h261dec.c Sat Aug 02 17:32:55 2008 +0000 +++ b/h261dec.c Sat Aug 02 22:51:49 2008 +0000 @@ -133,8 +133,11 @@ skip_bits(&s->gb, 8); } - if(s->qscale==0) - return -1; + if(s->qscale==0) { + av_log(s->avctx, AV_LOG_ERROR, "qscale has forbidden 0 value\n"); + if (s->avctx->error_resilience >= FF_ER_COMPLIANT) + return -1; + } // For the first transmitted macroblock in a GOB, MBA is the absolute address. For // subsequent macroblocks, MBA is the difference between the absolute addresses of