mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
nuv: Replace avpicture functions with imgutils
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
This commit is contained in:
parent
48c0638683
commit
13bddab7de
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user