[FFmpeg-cvslog] r9158 - trunk/libavformat/rmdec.c

aurel subversion
Wed May 30 11:50:36 CEST 2007


Author: aurel
Date: Wed May 30 11:50:35 2007
New Revision: 9158

Log:
use FFSWAP()

Modified:
   trunk/libavformat/rmdec.c

Modified: trunk/libavformat/rmdec.c
==============================================================================
--- trunk/libavformat/rmdec.c	(original)
+++ trunk/libavformat/rmdec.c	Wed May 30 11:50:35 2007
@@ -442,7 +442,7 @@ static int rm_read_packet(AVFormatContex
     RMContext *rm = s->priv_data;
     ByteIOContext *pb = &s->pb;
     AVStream *st;
-    int i, len, tmp, j;
+    int i, len, j;
     int64_t timestamp, pos;
     uint8_t *ptr;
     int flags;
@@ -610,9 +610,7 @@ resync:
     if (st->codec->codec_id == CODEC_ID_AC3) {
         ptr = pkt->data;
         for(j=0;j<len;j+=2) {
-            tmp = ptr[0];
-            ptr[0] = ptr[1];
-            ptr[1] = tmp;
+            FFSWAP(int, ptr[0], ptr[1]);
             ptr += 2;
         }
     }




More information about the ffmpeg-cvslog mailing list