mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-24 17:12:34 +02:00
avcodec/mpegvideo: Use FFSWAP to exchange pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f86e7c5d00
commit
403940de24
@ -846,10 +846,7 @@ static int init_duplicate_context(MpegEncContext *s)
|
|||||||
}
|
}
|
||||||
if (s->avctx->codec_tag == AV_RL32("VCR2")) {
|
if (s->avctx->codec_tag == AV_RL32("VCR2")) {
|
||||||
// exchange uv
|
// exchange uv
|
||||||
int16_t (*tmp)[64];
|
FFSWAP(void *, s->pblocks[4], s->pblocks[5]);
|
||||||
tmp = s->pblocks[4];
|
|
||||||
s->pblocks[4] = s->pblocks[5];
|
|
||||||
s->pblocks[5] = tmp;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s->out_format == FMT_H263) {
|
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")) {
|
if (dst->avctx->codec_tag == AV_RL32("VCR2")) {
|
||||||
// exchange uv
|
// exchange uv
|
||||||
int16_t (*tmp)[64];
|
FFSWAP(void *, dst->pblocks[4], dst->pblocks[5]);
|
||||||
tmp = dst->pblocks[4];
|
|
||||||
dst->pblocks[4] = dst->pblocks[5];
|
|
||||||
dst->pblocks[5] = tmp;
|
|
||||||
}
|
}
|
||||||
if (!dst->edge_emu_buffer &&
|
if (!dst->edge_emu_buffer &&
|
||||||
(ret = frame_size_alloc(dst, dst->linesize)) < 0) {
|
(ret = frame_size_alloc(dst, dst->linesize)) < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user