diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-10-22 20:32:07 +0200 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-10-22 20:32:07 +0200 |
commit | 422fab7fbe512afa6287fa816407f84e6dc54ae5 (patch) | |
tree | 029ea93c8917613042b930fc8a8217c7a012e6d4 | |
parent | 8fe1433ad4f866df58c0862f0d13535c96e90d63 (diff) | |
parent | 13bddab7de10aebf6efb98aa6d7ff0c51bb0e364 (diff) | |
download | ffmpeg-streaming-422fab7fbe512afa6287fa816407f84e6dc54ae5.zip ffmpeg-streaming-422fab7fbe512afa6287fa816407f84e6dc54ae5.tar.gz |
Merge commit '13bddab7de10aebf6efb98aa6d7ff0c51bb0e364'
* commit '13bddab7de10aebf6efb98aa6d7ff0c51bb0e364':
nuv: Replace avpicture functions with imgutils
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
-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 f3270cb..20bdeb4 100644 --- a/libavcodec/nuv.c +++ b/libavcodec/nuv.c @@ -75,9 +75,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); } /** |