Commit 13bddab7 authored by Vittorio Giovara's avatar Vittorio Giovara

nuv: Replace avpicture functions with imgutils

Signed-off-by: 's avatarVittorio Giovara <vittorio.giovara@gmail.com>
parent 48c06386
...@@ -74,9 +74,12 @@ static const uint8_t fallback_cquant[] = { ...@@ -74,9 +74,12 @@ static const uint8_t fallback_cquant[] = {
*/ */
static void copy_frame(AVFrame *f, const uint8_t *src, int width, int height) static void copy_frame(AVFrame *f, const uint8_t *src, int width, int height)
{ {
AVPicture pic; uint8_t *src_data[4];
avpicture_fill(&pic, src, AV_PIX_FMT_YUV420P, width, height); int src_linesize[4];
av_picture_copy((AVPicture *)f, &pic, AV_PIX_FMT_YUV420P, width, height); av_image_fill_arrays(src_data, src_linesize, src,
f->format, width, height, 1);
av_image_copy(f->data, f->linesize, src_data, src_linesize,
f->format, width, height);
} }
/** /**
......
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