diff options
author | Vladimir Voroshilov <voroshil@gmail.com> | 2008-04-19 17:07:58 +0000 |
---|---|---|
committer | Vladimir Voroshilov <voroshil@gmail.com> | 2008-04-19 17:07:58 +0000 |
commit | 159ef4b02a231259da95af3e7384c216f3252abd (patch) | |
tree | c353288c9ac9108377c2ce68b0094b9907ed8f52 /libavcodec/mpegvideo_enc.c | |
parent | c6cd525aa0b88a593ccb8c492f9a6a0a5c8abc86 (diff) | |
download | ffmpeg-159ef4b02a231259da95af3e7384c216f3252abd.tar.gz |
Implement FFMAX3(a,b,c) - maximum over three arguments.
Originally committed as revision 12910 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index a04e818327..b2e3a369b8 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -2814,7 +2814,7 @@ static int encode_picture(MpegEncContext *s, int picture_number) int a,b; a= ff_get_best_fcode(s, s->p_field_mv_table[0][0], CANDIDATE_MB_TYPE_INTER_I); //FIXME field_select b= ff_get_best_fcode(s, s->p_field_mv_table[1][1], CANDIDATE_MB_TYPE_INTER_I); - s->f_code= FFMAX(s->f_code, FFMAX(a,b)); + s->f_code= FFMAX3(s->f_code, a, b); } ff_fix_long_p_mvs(s); |