Commit de2567db authored by aurel's avatar aurel

cleanup setting of returned data frame

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8125 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 678e7fb4
...@@ -496,7 +496,6 @@ int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size, ...@@ -496,7 +496,6 @@ int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
{ {
vp56_context_t *s = avctx->priv_data; vp56_context_t *s = avctx->priv_data;
AVFrame *const p = s->framep[VP56_FRAME_CURRENT]; AVFrame *const p = s->framep[VP56_FRAME_CURRENT];
AVFrame *picture = data;
int mb_row, mb_col, mb_row_flip, mb_offset = 0; int mb_row, mb_col, mb_row_flip, mb_offset = 0;
int block, y, uv, stride_y, stride_uv; int block, y, uv, stride_y, stride_uv;
int golden_frame = 0; int golden_frame = 0;
...@@ -607,8 +606,8 @@ int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size, ...@@ -607,8 +606,8 @@ int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
FFSWAP(AVFrame *, s->framep[VP56_FRAME_CURRENT], FFSWAP(AVFrame *, s->framep[VP56_FRAME_CURRENT],
s->framep[VP56_FRAME_PREVIOUS]); s->framep[VP56_FRAME_PREVIOUS]);
*picture = *p; *(AVFrame*)data = *p;
*data_size = sizeof(AVPicture); *data_size = sizeof(AVFrame);
return buf_size; return buf_size;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment