diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-10-14 11:33:23 +0200 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-10-21 11:59:54 +0200 |
commit | 13bddab7de10aebf6efb98aa6d7ff0c51bb0e364 (patch) | |
tree | a9defbeb9e456639d0cfc05b3f690f8476f56ad4 /libavcodec/nuv.c | |
parent | 48c06386831604921bdaf4fb77ea02766cd615f4 (diff) | |
download | ffmpeg-13bddab7de10aebf6efb98aa6d7ff0c51bb0e364.tar.gz |
nuv: Replace avpicture functions with imgutils
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavcodec/nuv.c')
-rw-r--r-- | libavcodec/nuv.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c index c56003c3ad..9db85fd93d 100644 --- a/libavcodec/nuv.c +++ b/libavcodec/nuv.c @@ -74,9 +74,12 @@ static const uint8_t fallback_cquant[] = { */ static void copy_frame(AVFrame *f, const uint8_t *src, int width, int height) { - AVPicture pic; - avpicture_fill(&pic, src, AV_PIX_FMT_YUV420P, width, height); - av_picture_copy((AVPicture *)f, &pic, AV_PIX_FMT_YUV420P, width, height); + uint8_t *src_data[4]; + int src_linesize[4]; + 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); } /** |