Browse Source

avcodec/mpegvideo: Use FFSWAP to exchange pointers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer 10 years ago
parent
commit
403940de24
1 changed files with 2 additions and 8 deletions
  1. +2
    -8
      libavcodec/mpegvideo.c

+ 2
- 8
libavcodec/mpegvideo.c View File

@@ -846,10 +846,7 @@ static int init_duplicate_context(MpegEncContext *s)
}
if (s->avctx->codec_tag == AV_RL32("VCR2")) {
// exchange uv
int16_t (*tmp)[64];
tmp = s->pblocks[4];
s->pblocks[4] = s->pblocks[5];
s->pblocks[5] = tmp;
FFSWAP(void *, s->pblocks[4], s->pblocks[5]);
}

if (s->out_format == FMT_H263) {
@@ -927,10 +924,7 @@ int ff_update_duplicate_context(MpegEncContext *dst, MpegEncContext *src)
}
if (dst->avctx->codec_tag == AV_RL32("VCR2")) {
// exchange uv
int16_t (*tmp)[64];
tmp = dst->pblocks[4];
dst->pblocks[4] = dst->pblocks[5];
dst->pblocks[5] = tmp;
FFSWAP(void *, dst->pblocks[4], dst->pblocks[5]);
}
if (!dst->edge_emu_buffer &&
(ret = frame_size_alloc(dst, dst->linesize)) < 0) {


Loading…
Cancel
Save