Commit 422fab7f authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '13bddab7'

* commit '13bddab7':
  nuv: Replace avpicture functions with imgutils
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents 8fe1433a 13bddab7
......@@ -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);
}
/**
......
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