changeset 9771:85c99c1335bc libavcodec

One more use for FFMIN.
author reimar
date Sun, 31 May 2009 10:44:42 +0000
parents e883c3dab3ec
children 2771fff83016
files lcldec.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lcldec.c	Sun May 31 10:42:26 2009 +0000
+++ b/lcldec.c	Sun May 31 10:44:42 2009 +0000
@@ -102,9 +102,7 @@
             cnt = (ofs >> 11) + 1;
             ofs &= 0x7ff;
             cnt *= 4;
-            if (destptr_end - destptr < cnt) {
-                cnt =  destptr_end - destptr;
-            }
+            cnt = FFMIN(cnt, destptr_end - destptr);
             av_memcpy_backptr(destptr, ofs, cnt);
             destptr += cnt;
         }