summaryrefslogtreecommitdiff
path: root/libavcodec/h263.c
diff options
context:
space:
mode:
authorHarald Karnet <harald.karner@gmx.net>2007-05-25 14:42:11 +0000
committerPanagiotis Issaris <takis.issaris@uhasselt.be>2007-05-25 14:42:11 +0000
commitf1edd8ef90fb730effe62c6227586d8c121c9499 (patch)
treeff04b81d795cddd66caa7e4ffa787f3f8351821e /libavcodec/h263.c
parent59a2385e73781a7e29c57d1f7116f50321a70d61 (diff)
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/h263.c')
-rw-r--r--libavcodec/h263.c2
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;