aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rawvideodec.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-10-14 11:33:24 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-10-21 11:59:59 +0200
commitf890677d05bc4e8b494a73373ab4cc19791bf884 (patch)
treecb66705498706dc94caa00ae80962f770a7ba056 /libavformat/rawvideodec.c
parent13bddab7de10aebf6efb98aa6d7ff0c51bb0e364 (diff)
downloadffmpeg-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 'libavformat/rawvideodec.c')
-rw-r--r--libavformat/rawvideodec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/rawvideodec.c b/libavformat/rawvideodec.c
index 5f372c9a2c..c7de844765 100644
--- a/libavformat/rawvideodec.c
+++ b/libavformat/rawvideodec.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/imgutils.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "libavutil/opt.h"
@@ -85,7 +86,7 @@ static int rawvideo_read_packet(AVFormatContext *s, AVPacket *pkt)
width = st->codec->width;
height = st->codec->height;
- packet_size = avpicture_get_size(st->codec->pix_fmt, width, height);
+ packet_size = av_image_get_buffer_size(st->codec->pix_fmt, width, height, 1);
if (packet_size < 0)
return -1;