Commit 282847ba authored by Mans Rullgard's avatar Mans Rullgard

zmbv: remove memcpy() of decoded frame

Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent 2f329db9
......@@ -574,7 +574,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
default:
av_log(avctx, AV_LOG_ERROR, "Cannot handle format %i\n", c->fmt);
}
memcpy(c->prev, c->cur, c->width * c->height * (c->bpp / 8));
FFSWAP(uint8_t *, c->cur, c->prev);
}
*data_size = sizeof(AVFrame);
*(AVFrame*)data = c->pic;
......
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