提交 74a4371d 编写于 作者: S Stefan Gehrer

use assignment of structure instead of memcpy

Originally committed as revision 16644 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 2c96535a
......@@ -567,8 +567,8 @@ static int decode_pic(AVSContext *h) {
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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册