Mercurial > libavcodec.hg
comparison h264.c @ 3128:dd3f6be492bd libavcodec
don't arbitrarily limit delta_qp
author | lorenm |
---|---|
date | Thu, 16 Feb 2006 01:16:12 +0000 |
parents | 05a10f97d510 |
children | c12fc3d1c612 |
comparison
equal
deleted
inserted
replaced
3127:6bae70889b35 | 3128:dd3f6be492bd |
---|---|
5482 if( ctx < 2 ) | 5482 if( ctx < 2 ) |
5483 ctx = 2; | 5483 ctx = 2; |
5484 else | 5484 else |
5485 ctx = 3; | 5485 ctx = 3; |
5486 val++; | 5486 val++; |
5487 if(val > 52) //prevent infinite loop | 5487 if(val > 102) //prevent infinite loop |
5488 return INT_MIN; | 5488 return INT_MIN; |
5489 } | 5489 } |
5490 | 5490 |
5491 if( val&0x01 ) | 5491 if( val&0x01 ) |
5492 return (val + 1)/2; | 5492 return (val + 1)/2; |