changeset 8608:379d63485cb7 libavcodec

use assignment of structure instead of memcpy
author stefang
date Fri, 16 Jan 2009 17:58:38 +0000
parents 79b1cf27cfea
children 99bfffc29ab9
files cavsdec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cavsdec.c	Fri Jan 16 17:46:19 2009 +0000
+++ b/cavsdec.c	Fri Jan 16 17:58:38 2009 +0000
@@ -567,8 +567,8 @@
     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;