From a6dc1eb8376c59511845e8c2c92c5bd0a7e31b72 Mon Sep 17 00:00:00 2001 From: Eddie Hao Date: Sat, 16 Jan 2016 21:41:54 -0800 Subject: remove all uses of the deprecated avpicture_get_size() function Signed-off-by: Michael Niedermayer --- libavformat/frmdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavformat/frmdec.c') diff --git a/libavformat/frmdec.c b/libavformat/frmdec.c index a6f19afcd4..260afbc588 100644 --- a/libavformat/frmdec.c +++ b/libavformat/frmdec.c @@ -25,6 +25,7 @@ */ #include "libavcodec/raw.h" +#include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" #include "avformat.h" @@ -80,7 +81,7 @@ static int frm_read_packet(AVFormatContext *avctx, AVPacket *pkt) if (s->count) return AVERROR_EOF; - packet_size = avpicture_get_size(stc->pix_fmt, stc->width, stc->height); + packet_size = av_image_get_buffer_size(stc->pix_fmt, stc->width, stc->height, 1); if (packet_size < 0) return AVERROR_INVALIDDATA; -- cgit v1.2.3