diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-02-10 22:32:15 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-02-10 22:50:16 +0100 |
commit | af46ca73568ea8edb261d2aeedd892c68fa918bc (patch) | |
tree | 0a192ac068b5e935a79a741e1f90d72126438d4a /libavcodec/msmpeg4.c | |
parent | a3c4371f3ca4fab4126c76bafc70950c3c42f731 (diff) | |
download | ffmpeg-af46ca73568ea8edb261d2aeedd892c68fa918bc.tar.gz |
msmpeg4: replace 999999 by INT_MAX and initial by a valid index.
Fixes Ticket990
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/msmpeg4.c')
-rw-r--r-- | libavcodec/msmpeg4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c index d37cac9862..9185fbee80 100644 --- a/libavcodec/msmpeg4.c +++ b/libavcodec/msmpeg4.c @@ -282,8 +282,8 @@ av_cold void ff_msmpeg4_encode_init(MpegEncContext *s) static void find_best_tables(MpegEncContext * s) { int i; - int best =-1, best_size =9999999; - int chroma_best=-1, best_chroma_size=9999999; + int best = 0, best_size = INT_MAX; + int chroma_best = 0, best_chroma_size = INT_MAX; for(i=0; i<3; i++){ int level; |