Mercurial > libavcodec.hg
comparison common.c @ 1126:77ccf7fe3bd0 libavcodec
per context frame_rate_base, this should finally fix frame_rate related av sync issues
author | michaelni |
---|---|
date | Wed, 12 Mar 2003 15:16:19 +0000 |
parents | 1e39f273ecd6 |
children | e88d3b1fb2a1 |
comparison
equal
deleted
inserted
replaced
1125:0980ae063f4e | 1126:77ccf7fe3bd0 |
---|---|
339 void free_vlc(VLC *vlc) | 339 void free_vlc(VLC *vlc) |
340 { | 340 { |
341 av_free(vlc->table); | 341 av_free(vlc->table); |
342 } | 342 } |
343 | 343 |
344 int ff_gcd(int a, int b){ | 344 int64_t ff_gcd(int64_t a, int64_t b){ |
345 if(b) return ff_gcd(b, a%b); | 345 if(b) return ff_gcd(b, a%b); |
346 else return a; | 346 else return a; |
347 } | 347 } |
348 | 348 |
349 void ff_float2fraction(int *nom_arg, int *denom_arg, double f, int max){ | 349 void ff_float2fraction(int *nom_arg, int *denom_arg, double f, int max){ |