diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-25 19:37:42 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-25 20:38:29 +0400 |
commit | bb6101d4de74525903e3acd78c52d5043d8046a9 (patch) | |
tree | 1eaed36efe01bbdfa72cff109733d8210d150b8a /libavformat/nuv.c | |
parent | 0cedc6c066decb646eb023f02c62931c6056605e (diff) |
avformat/nuv: use ff_get_extradata()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/nuv.c')
-rw-r--r-- | libavformat/nuv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/nuv.c b/libavformat/nuv.c index 32d0e02f68..2c02de1c6f 100644 --- a/libavformat/nuv.c +++ b/libavformat/nuv.c @@ -86,9 +86,8 @@ static int get_codec_data(AVIOContext *pb, AVStream *vst, av_freep(&vst->codec->extradata); vst->codec->extradata_size = 0; } - if (ff_alloc_extradata(vst->codec, size)) + if (ff_get_extradata(vst->codec, pb, size) < 0) return AVERROR(ENOMEM); - avio_read(pb, vst->codec->extradata, size); size = 0; if (!myth) return 0; |