Mercurial > libavcodec.hg
changeset 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 | 2ced44037814 |
children | 5cbf11f56c02 |
files | h261dec.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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