aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/frmdec.c
diff options
context:
space:
mode:
authorEddie Hao <eddiehao1@gmail.com>2016-01-16 21:41:54 -0800
committerMichael Niedermayer <michael@niedermayer.cc>2016-01-17 12:01:35 +0100
commita6dc1eb8376c59511845e8c2c92c5bd0a7e31b72 (patch)
treebc401c849c438b3bfb9413b00cf441e133c9a2eb /libavformat/frmdec.c
parent757248ea3cd917a7755cb15f817a9b1f15578718 (diff)
downloadffmpeg-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.c3
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;