[FFmpeg-cvslog] avformat/nuv: 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| [bb6101d4de74525903e3acd78c52d5043d8046a9] | committer: Michael Niedermayer
avformat/nuv: use ff_get_extradata()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bb6101d4de74525903e3acd78c52d5043d8046a9
---
libavformat/nuv.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavformat/nuv.c b/libavformat/nuv.c
index 32d0e02..2c02de1 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;
More information about the ffmpeg-cvslog
mailing list