diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-10-22 20:42:28 +0200 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-10-22 20:48:54 +0200 |
commit | 470204218f37e361da02d75845f9db9793a4ee53 (patch) | |
tree | ba86e91f6b2c0a35192e4c04ab7182cadb5d3699 /libavdevice/v4l2.c | |
parent | 4c46f1d493f4d68121526fbede459619a02afa5a (diff) | |
parent | f890677d05bc4e8b494a73373ab4cc19791bf884 (diff) | |
download | ffmpeg-470204218f37e361da02d75845f9db9793a4ee53.tar.gz |
Merge commit 'f890677d05bc4e8b494a73373ab4cc19791bf884'
* commit 'f890677d05bc4e8b494a73373ab4cc19791bf884':
Replace any remaining avpicture function with imgutils
Merged-by: Hendrik Leppkes <h.leppkes@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 9e8ba1e5b6..247b287689 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -939,8 +939,8 @@ static int v4l2_read_header(AVFormatContext *ctx) goto fail; st->codec->pix_fmt = ff_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(ctx)) || (res = mmap_start(ctx)) < 0) |