changeset 2665:9645f395842d libavformat

use FFMIN
author bcoudurier
date Tue, 23 Oct 2007 22:28:57 +0000
parents 33122df98824
children 1995444f6267
files mov.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Tue Oct 23 17:28:30 2007 +0000
+++ b/mov.c	Tue Oct 23 22:28:57 2007 +0000
@@ -181,8 +181,7 @@
         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++)