mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-29 06:20:29 +00:00
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
This commit is contained in:
parent
59a2385e73
commit
f1edd8ef90
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user