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

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


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

avformat/nutdec: use ff_get_extradata()

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

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

 libavformat/nutdec.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 4ee5f4d..ba9ff02 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -418,9 +418,8 @@ static int decode_stream_header(NUTContext *nut)
 
     GET_V(st->codec->extradata_size, tmp < (1 << 30));
     if (st->codec->extradata_size) {
-        if (ff_alloc_extradata(st->codec, st->codec->extradata_size))
+        if (ff_get_extradata(st->codec, bc, st->codec->extradata_size) < 0)
             return AVERROR(ENOMEM);
-        avio_read(bc, st->codec->extradata, st->codec->extradata_size);
     }
 
     if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO) {



More information about the ffmpeg-cvslog mailing list