Mercurial > libavcodec.hg
comparison cavsdec.c @ 8608:379d63485cb7 libavcodec
use assignment of structure instead of memcpy
author | stefang |
---|---|
date | Fri, 16 Jan 2009 17:58:38 +0000 |
parents | c3a96cea3453 |
children | 3260670e39df |
comparison
equal
deleted
inserted
replaced
8607:79b1cf27cfea | 8608:379d63485cb7 |
---|---|
565 } | 565 } |
566 done: | 566 done: |
567 if(h->pic_type != FF_B_TYPE) { | 567 if(h->pic_type != FF_B_TYPE) { |
568 if(h->DPB[1].data[0]) | 568 if(h->DPB[1].data[0]) |
569 s->avctx->release_buffer(s->avctx, (AVFrame *)&h->DPB[1]); | 569 s->avctx->release_buffer(s->avctx, (AVFrame *)&h->DPB[1]); |
570 memcpy(&h->DPB[1], &h->DPB[0], sizeof(Picture)); | 570 h->DPB[1] = h->DPB[0]; |
571 memcpy(&h->DPB[0], &h->picture, sizeof(Picture)); | 571 h->DPB[0] = h->picture; |
572 memset(&h->picture,0,sizeof(Picture)); | 572 memset(&h->picture,0,sizeof(Picture)); |
573 } | 573 } |
574 return 0; | 574 return 0; |
575 } | 575 } |
576 | 576 |