# HG changeset patch # User aurel # Date 1172419352 0 # Node ID 4992cbff45c6c9ba314b3f1d448b9563b56f89dc # Parent 340c876320eb4d753edfb533be44748ec7ab6bb6 cleanup setting of returned data frame diff -r 340c876320eb -r 4992cbff45c6 vp56.c --- 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; }