[FFmpeg-cvslog] r10848 - trunk/libavformat/mov.c

bcoudurier subversion
Wed Oct 24 00:28:57 CEST 2007


Author: bcoudurier
Date: Wed Oct 24 00:28:57 2007
New Revision: 10848

Log:
use FFMIN

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	(original)
+++ trunk/libavformat/mov.c	Wed Oct 24 00:28:57 2007
@@ -181,8 +181,7 @@ static int mov_read_default(MOVContext *
         a.size -= 8;
         if(a.size < 0)
             break;
-        if (a.size > atom.size - total_size)
-            a.size = atom.size - total_size;
+        a.size = FFMIN(a.size, atom.size - total_size);
 
         for (i = 0; c->parse_table[i].type != 0L
              && c->parse_table[i].type != a.type; i++)




More information about the ffmpeg-cvslog mailing list