Commit 0197d86e authored by aurel's avatar aurel

use FFSWAP()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9158 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fb0f4579
...@@ -442,7 +442,7 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -442,7 +442,7 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
RMContext *rm = s->priv_data; RMContext *rm = s->priv_data;
ByteIOContext *pb = &s->pb; ByteIOContext *pb = &s->pb;
AVStream *st; AVStream *st;
int i, len, tmp, j; int i, len, j;
int64_t timestamp, pos; int64_t timestamp, pos;
uint8_t *ptr; uint8_t *ptr;
int flags; int flags;
...@@ -610,9 +610,7 @@ resync: ...@@ -610,9 +610,7 @@ resync:
if (st->codec->codec_id == CODEC_ID_AC3) { if (st->codec->codec_id == CODEC_ID_AC3) {
ptr = pkt->data; ptr = pkt->data;
for(j=0;j<len;j+=2) { for(j=0;j<len;j+=2) {
tmp = ptr[0]; FFSWAP(int, ptr[0], ptr[1]);
ptr[0] = ptr[1];
ptr[1] = tmp;
ptr += 2; ptr += 2;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment