# HG changeset patch # User stefang # Date 1232128718 0 # Node ID 379d63485cb7afcc4a6a26900e9280683fa29147 # Parent 79b1cf27cfeac294db23e9a527511578b1c1780d use assignment of structure instead of memcpy diff -r 79b1cf27cfea -r 379d63485cb7 cavsdec.c --- 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;