Commit 81989aef authored by stefang's avatar stefang

use assignment of structure instead of memcpy


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16644 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ac40de07
......@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment