提交 4501e678 编写于 作者: M Michael Niedermayer

useless memcpy

Originally committed as revision 5772 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 7cfe7fe5
...@@ -2485,7 +2485,7 @@ static int vp3_decode_frame(AVCodecContext *avctx, ...@@ -2485,7 +2485,7 @@ static int vp3_decode_frame(AVCodecContext *avctx,
} }
/* golden frame is also the current frame */ /* 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? */ /* time to figure out pixel addresses? */
if (!s->pixel_addresses_inited) if (!s->pixel_addresses_inited)
...@@ -2581,7 +2581,7 @@ if (!s->keyframe) { ...@@ -2581,7 +2581,7 @@ if (!s->keyframe) {
avctx->release_buffer(avctx, &s->last_frame); avctx->release_buffer(avctx, &s->last_frame);
/* shuffle frames (last = current) */ /* 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 */ s->current_frame.data[0]= NULL; /* ensure that we catch any access to this released frame */
return buf_size; return buf_size;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册