Mercurial > libavformat.hg
changeset 2105:f42ab3fae0ec libavformat
use FFSWAP()
author | aurel |
---|---|
date | Wed, 30 May 2007 09:50:35 +0000 |
parents | ebf61cad0b61 |
children | eb66f83e9562 |
files | rmdec.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/rmdec.c Wed May 30 09:45:09 2007 +0000 +++ b/rmdec.c Wed May 30 09:50:35 2007 +0000 @@ -442,7 +442,7 @@ 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 @@ 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; } }