diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-07-16 21:00:38 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-07-16 21:00:38 +0000 |
commit | 4501e678e79ac51c94a7bbcd92bcabc43d66b6f4 (patch) | |
tree | beaed3916167e119d3499fd22cc53603b80227f9 /libavcodec/vp3.c | |
parent | 7cfe7fe5e78f9f1ce1e707a0385188dfa44ba6ce (diff) | |
download | ffmpeg-streaming-4501e678e79ac51c94a7bbcd92bcabc43d66b6f4.zip ffmpeg-streaming-4501e678e79ac51c94a7bbcd92bcabc43d66b6f4.tar.gz |
useless memcpy
Originally committed as revision 5772 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r-- | libavcodec/vp3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 5b689f6..fbd14c7 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -2485,7 +2485,7 @@ static int vp3_decode_frame(AVCodecContext *avctx, } /* 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 @@ if (!s->keyframe) { 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; |