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/libdc1394.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/libdc1394.c')
-rw-r--r-- | libavdevice/libdc1394.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavdevice/libdc1394.c b/libavdevice/libdc1394.c index 20696f58fc..64c453bd9a 100644 --- a/libavdevice/libdc1394.c +++ b/libavdevice/libdc1394.c @@ -41,6 +41,7 @@ #define DC1394_FRAMERATE_240 FRAMERATE_240 #endif +#include "libavutil/imgutils.h" #include "libavutil/internal.h" #include "libavutil/log.h" #include "libavutil/mathematics.h" @@ -179,7 +180,8 @@ static inline int dc1394_read_common(AVFormatContext *c, /* packet init */ av_init_packet(&dc1394->packet); - dc1394->packet.size = avpicture_get_size(fmt->pix_fmt, fmt->width, fmt->height); + dc1394->packet.size = av_image_get_buffer_size(fmt->pix_fmt, + fmt->width, fmt->height, 1); dc1394->packet.stream_index = vst->index; dc1394->packet.flags |= AV_PKT_FLAG_KEY; |