aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cavsdec.c
diff options
context:
space:
mode:
authorStefan Gehrer <stefan.gehrer@gmx.de>2009-01-16 17:58:38 +0000
committerStefan Gehrer <stefan.gehrer@gmx.de>2009-01-16 17:58:38 +0000
commit74a4371d74b70fc6c8f69383a2d542837004d6ca (patch)
tree73a8f746219f5142e41da18735c2fc76185d2587 /libavcodec/cavsdec.c
parent2c96535af74d4e9ef6c3eaf4f0cd291229685fa6 (diff)
downloadffmpeg-74a4371d74b70fc6c8f69383a2d542837004d6ca.tar.gz
use assignment of structure instead of memcpy
Originally committed as revision 16644 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cavsdec.c')
-rw-r--r--libavcodec/cavsdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c
index 38a7681647..dbf7252fb2 100644
--- a/libavcodec/cavsdec.c
+++ b/libavcodec/cavsdec.c
@@ -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;