summaryrefslogtreecommitdiff
path: root/libavformat/flvdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-25 16:37:42 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-25 17:24:09 +0100
commitd8d5258bb7e84f2fc1ff57d1361ba71ec4f1d118 (patch)
tree9f38369ebd53da1d615cb69689d3bb298c5db31f /libavformat/flvdec.c
parentc633aeba45abf092f98b66690df81b7dfd864e29 (diff)
avformat/flvdec: use ff_get_extradata()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r--libavformat/flvdec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 440165279b..5683ed514e 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -615,9 +615,8 @@ static int flv_read_close(AVFormatContext *s)
static int flv_get_extradata(AVFormatContext *s, AVStream *st, int size)
{
av_free(st->codec->extradata);
- if (ff_alloc_extradata(st->codec, size))
+ if (ff_get_extradata(st->codec, s->pb, size) < 0)
return AVERROR(ENOMEM);
- avio_read(s->pb, st->codec->extradata, st->codec->extradata_size);
return 0;
}