diff options
author | Eddie Hao <eddiehao1@gmail.com> | 2016-01-16 21:41:54 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-17 12:01:35 +0100 |
commit | a6dc1eb8376c59511845e8c2c92c5bd0a7e31b72 (patch) | |
tree | bc401c849c438b3bfb9413b00cf441e133c9a2eb /libavformat/frmdec.c | |
parent | 757248ea3cd917a7755cb15f817a9b1f15578718 (diff) | |
download | ffmpeg-a6dc1eb8376c59511845e8c2c92c5bd0a7e31b72.tar.gz |
remove all uses of the deprecated avpicture_get_size() function
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/frmdec.c')
-rw-r--r-- | libavformat/frmdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |