diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-25 16:37:42 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-25 17:24:09 +0100 |
commit | d8d5258bb7e84f2fc1ff57d1361ba71ec4f1d118 (patch) | |
tree | 9f38369ebd53da1d615cb69689d3bb298c5db31f /libavformat/flvdec.c | |
parent | c633aeba45abf092f98b66690df81b7dfd864e29 (diff) | |
download | ffmpeg-streaming-d8d5258bb7e84f2fc1ff57d1361ba71ec4f1d118.zip ffmpeg-streaming-d8d5258bb7e84f2fc1ff57d1361ba71ec4f1d118.tar.gz |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 4401652..5683ed5 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; } |