mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
do not fail on qscale==0 if error resilience is high, fix broken quicktime h261, lotr.mov
Originally committed as revision 14510 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f769b746aa
commit
ce98b0a479
@ -133,8 +133,11 @@ static int h261_decode_gob_header(H261Context *h){
|
|||||||
skip_bits(&s->gb, 8);
|
skip_bits(&s->gb, 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(s->qscale==0)
|
if(s->qscale==0) {
|
||||||
return -1;
|
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
|
// 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
|
// subsequent macroblocks, MBA is the difference between the absolute addresses of
|
||||||
|
Loading…
Reference in New Issue
Block a user