[FFmpeg-cvslog] r16644 - trunk/libavcodec/cavsdec.c
stefang
subversion
Fri Jan 16 18:58:40 CET 2009
Author: stefang
Date: Fri Jan 16 18:58:38 2009
New Revision: 16644
Log:
use assignment of structure instead of memcpy
Modified:
trunk/libavcodec/cavsdec.c
Modified: trunk/libavcodec/cavsdec.c
==============================================================================
--- trunk/libavcodec/cavsdec.c Fri Jan 16 18:46:19 2009 (r16643)
+++ trunk/libavcodec/cavsdec.c Fri Jan 16 18:58:38 2009 (r16644)
@@ -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;
More information about the ffmpeg-cvslog
mailing list