[SCM] libav/experimental: use assignment of structure instead of memcpy
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:35:29 UTC 2013
The following commit has been merged in the experimental branch:
commit 74a4371d74b70fc6c8f69383a2d542837004d6ca
Author: Stefan Gehrer <stefan.gehrer at gmx.de>
Date: Fri Jan 16 17:58:38 2009 +0000
use assignment of structure instead of memcpy
Originally committed as revision 16644 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c
index 38a7681..dbf7252 100644
--- a/libavcodec/cavsdec.c
+++ b/libavcodec/cavsdec.c
@@ -567,8 +567,8 @@ static int decode_pic(AVSContext *h) {
if(h->pic_type != FF_B_TYPE) {
if(h->DPB[1].data[0])
s->avctx->release_buffer(s->avctx, (AVFrame *)&h->DPB[1]);
- memcpy(&h->DPB[1], &h->DPB[0], sizeof(Picture));
- memcpy(&h->DPB[0], &h->picture, sizeof(Picture));
+ h->DPB[1] = h->DPB[0];
+ h->DPB[0] = h->picture;
memset(&h->picture,0,sizeof(Picture));
}
return 0;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list