mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
zmbv: remove memcpy() of decoded frame
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
2f329db90e
commit
282847ba80
@ -574,7 +574,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
|
|||||||
default:
|
default:
|
||||||
av_log(avctx, AV_LOG_ERROR, "Cannot handle format %i\n", c->fmt);
|
av_log(avctx, AV_LOG_ERROR, "Cannot handle format %i\n", c->fmt);
|
||||||
}
|
}
|
||||||
memcpy(c->prev, c->cur, c->width * c->height * (c->bpp / 8));
|
FFSWAP(uint8_t *, c->cur, c->prev);
|
||||||
}
|
}
|
||||||
*data_size = sizeof(AVFrame);
|
*data_size = sizeof(AVFrame);
|
||||||
*(AVFrame*)data = c->pic;
|
*(AVFrame*)data = c->pic;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user