diff options
author | Harald Karnet <harald.karner@gmx.net> | 2007-05-25 14:42:11 +0000 |
---|---|---|
committer | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2007-05-25 14:42:11 +0000 |
commit | f1edd8ef90fb730effe62c6227586d8c121c9499 (patch) | |
tree | ff04b81d795cddd66caa7e4ffa787f3f8351821e /libavcodec | |
parent | 59a2385e73781a7e29c57d1f7116f50321a70d61 (diff) | |
download | ffmpeg-f1edd8ef90fb730effe62c6227586d8c121c9499.tar.gz |
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
Originally committed as revision 9131 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h263.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index ebf64fd92c..0719d7e6c7 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -212,7 +212,7 @@ void h263_encode_picture_header(MpegEncContext * s, int picture_number) 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; |