diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-10-14 11:33:24 +0200 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-10-21 11:59:59 +0200 |
commit | f890677d05bc4e8b494a73373ab4cc19791bf884 (patch) | |
tree | cb66705498706dc94caa00ae80962f770a7ba056 /libavdevice/v4l2.c | |
parent | 13bddab7de10aebf6efb98aa6d7ff0c51bb0e364 (diff) | |
download | ffmpeg-f890677d05bc4e8b494a73373ab4cc19791bf884.tar.gz |
Replace any remaining avpicture function with imgutils
avpicture_get_size() -> av_image_get_buffer_size()
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavdevice/v4l2.c')
-rw-r--r-- | libavdevice/v4l2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 7b3568224f..40eabc4f21 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -828,8 +828,8 @@ static int v4l2_read_header(AVFormatContext *s1) return res; st->codec->pix_fmt = fmt_v4l2ff(desired_format, codec_id); - s->frame_size = - avpicture_get_size(st->codec->pix_fmt, s->width, s->height); + s->frame_size = av_image_get_buffer_size(st->codec->pix_fmt, + s->width, s->height, 1); if ((res = mmap_init(s1)) || (res = mmap_start(s1)) < 0) { |