X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fkmvc.c;h=56c1977254158614c22e272541465ffd08207539;hb=1ec87f50f42a16f9228444dc08aa8264879f61e1;hp=dd1ae05f2dbae7e6be79ff7e194eff9c7e8ac382;hpb=efbfee4c1a61705dc5a4067ac8e70d7db618a7e9;p=ffmpeg diff --git a/libavcodec/kmvc.c b/libavcodec/kmvc.c index dd1ae05f2db..56c19772541 100644 --- a/libavcodec/kmvc.c +++ b/libavcodec/kmvc.c @@ -345,13 +345,7 @@ static int decode_frame(AVCodecContext * avctx, void *data, int *got_frame, } /* flip buffers */ - if (ctx->cur == ctx->frm0) { - ctx->cur = ctx->frm1; - ctx->prev = ctx->frm0; - } else { - ctx->cur = ctx->frm0; - ctx->prev = ctx->frm1; - } + FFSWAP(uint8_t *, ctx->cur, ctx->prev); *got_frame = 1;