[Ffmpeg-cvslog] r8125 - trunk/libavcodec/vp56.c

aurel subversion
Sun Feb 25 17:02:32 CET 2007


Author: aurel
Date: Sun Feb 25 17:02:32 2007
New Revision: 8125

Modified:
   trunk/libavcodec/vp56.c

Log:
cleanup setting of returned data frame

Modified: trunk/libavcodec/vp56.c
==============================================================================
--- trunk/libavcodec/vp56.c	(original)
+++ trunk/libavcodec/vp56.c	Sun Feb 25 17:02:32 2007
@@ -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;
 }




More information about the ffmpeg-cvslog mailing list