Mercurial > libavcodec.hg
changeset 5075:33d50e0e1823 libavcodec
Correct the parameter order for the call to "av_clip".
Patch by Harald Karnet, harald karner % gmx net.
Thread [FFmpeg-devel] [PATCH] Bugfix H.263+ encoder frame header corruption
author | takis |
---|---|
date | Fri, 25 May 2007 14:42:11 +0000 |
parents | cf4a58988e6e |
children | 796c2a5481ad |
files | h263.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/h263.c Fri May 25 00:16:14 2007 +0000 +++ b/h263.c Fri May 25 14:42:11 2007 +0000 @@ -212,7 +212,7 @@ for(i=0; i<2; i++){ int div, error; div= (s->avctx->time_base.num*1800000LL + 500LL*s->avctx->time_base.den) / ((1000LL+i)*s->avctx->time_base.den); - div= av_clip(1, div, 127); + div= av_clip(div, 1, 127); error= FFABS(s->avctx->time_base.num*1800000LL - (1000LL+i)*s->avctx->time_base.den*div); if(error < best_error){ best_error= error;