changeset 3486:5ee0e924432f libavcodec

useless memcpy
author michael
date Sun, 16 Jul 2006 21:00:38 +0000
parents f574901e49d2
children 26d3704e12c0
files vp3.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/vp3.c	Sun Jul 16 20:47:48 2006 +0000
+++ b/vp3.c	Sun Jul 16 21:00:38 2006 +0000
@@ -2485,7 +2485,7 @@
         }
 
         /* golden frame is also the current frame */
-        memcpy(&s->current_frame, &s->golden_frame, sizeof(AVFrame));
+        s->current_frame= s->golden_frame;
 
         /* time to figure out pixel addresses? */
         if (!s->pixel_addresses_inited)
@@ -2581,7 +2581,7 @@
         avctx->release_buffer(avctx, &s->last_frame);
 
     /* shuffle frames (last = current) */
-    memcpy(&s->last_frame, &s->current_frame, sizeof(AVFrame));
+    s->last_frame= s->current_frame;
     s->current_frame.data[0]= NULL; /* ensure that we catch any access to this released frame */
 
     return buf_size;