[FFmpeg-cvslog] r14918 - trunk/libavcodec/dca.c

michael subversion
Sat Aug 23 15:35:13 CEST 2008


Author: michael
Date: Sat Aug 23 15:35:12 2008
New Revision: 14918

Log:
Remove redundant FFMIN().


Modified:
   trunk/libavcodec/dca.c

Modified: trunk/libavcodec/dca.c
==============================================================================
--- trunk/libavcodec/dca.c	(original)
+++ trunk/libavcodec/dca.c	Sat Aug 23 15:35:12 2008
@@ -1116,12 +1116,12 @@ static int dca_convert_bitstream(const u
     mrk = AV_RB32(src);
     switch (mrk) {
     case DCA_MARKER_RAW_BE:
-        memcpy(dst, src, FFMIN(src_size, max_size));
-        return FFMIN(src_size, max_size);
+        memcpy(dst, src, src_size);
+        return src_size;
     case DCA_MARKER_RAW_LE:
-        for (i = 0; i < (FFMIN(src_size, max_size) + 1) >> 1; i++)
+        for (i = 0; i < (src_size + 1) >> 1; i++)
             *sdst++ = bswap_16(*ssrc++);
-        return FFMIN(src_size, max_size);
+        return src_size;
     case DCA_MARKER_14B_BE:
     case DCA_MARKER_14B_LE:
         init_put_bits(&pb, dst, max_size);




More information about the ffmpeg-cvslog mailing list