[FFmpeg-cvslog] zmbv: remove memcpy() of decoded frame
Mans Rullgard
git at videolan.org
Mon Oct 10 03:59:50 CEST 2011
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sun Oct 9 13:21:10 2011 +0100| [282847ba801e65718a84dc38d46be5077beef040] | committer: Mans Rullgard
zmbv: remove memcpy() of decoded frame
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=282847ba801e65718a84dc38d46be5077beef040
---
libavcodec/zmbv.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c
index 10fd903..a9c127e 100644
--- a/libavcodec/zmbv.c
+++ b/libavcodec/zmbv.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list