[FFmpeg-cvslog] avformat/flvdec: use ff_get_extradata()

Michael Niedermayer git at videolan.org
Wed Dec 25 17:48:53 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 25 16:37:42 2013 +0100| [d8d5258bb7e84f2fc1ff57d1361ba71ec4f1d118] | committer: Michael Niedermayer

avformat/flvdec: use ff_get_extradata()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d8d5258bb7e84f2fc1ff57d1361ba71ec4f1d118
---

 libavformat/flvdec.c |    3 +--
 1 file changed, 1 insertion(+), 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;
 }
 



More information about the ffmpeg-cvslog mailing list