changeset 4596:4992cbff45c6 libavcodec

cleanup setting of returned data frame
author aurel
date Sun, 25 Feb 2007 16:02:32 +0000
parents 340c876320eb
children b003bca23af2
files vp56.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/vp56.c	Sun Feb 25 15:33:38 2007 +0000
+++ b/vp56.c	Sun Feb 25 16:02:32 2007 +0000
@@ -496,7 +496,6 @@
 {
     vp56_context_t *s = avctx->priv_data;
     AVFrame *const p = s->framep[VP56_FRAME_CURRENT];
-    AVFrame *picture = data;
     int mb_row, mb_col, mb_row_flip, mb_offset = 0;
     int block, y, uv, stride_y, stride_uv;
     int golden_frame = 0;
@@ -607,8 +606,8 @@
     FFSWAP(AVFrame *, s->framep[VP56_FRAME_CURRENT],
                       s->framep[VP56_FRAME_PREVIOUS]);
 
-    *picture = *p;
-    *data_size = sizeof(AVPicture);
+    *(AVFrame*)data = *p;
+    *data_size = sizeof(AVFrame);
 
     return buf_size;
 }