[FFmpeg-cvslog] avformat/rmdec: use ff_get_extradata()
Michael Niedermayer
git at videolan.org
Wed Dec 25 17:48:56 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 25 16:37:42 2013 +0100| [fd335aa3260d89775e3975d1c28738e79ba4d9d9] | committer: Michael Niedermayer
avformat/rmdec: use ff_get_extradata()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fd335aa3260d89775e3975d1c28738e79ba4d9d9
---
libavformat/rmdec.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index a8af378..23e0f9c 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -86,11 +86,8 @@ static int rm_read_extradata(AVIOContext *pb, AVCodecContext *avctx, unsigned si
{
if (size >= 1<<24)
return -1;
- if (ff_alloc_extradata(avctx, size))
+ if (ff_get_extradata(avctx, pb, size) < 0)
return AVERROR(ENOMEM);
- avctx->extradata_size = avio_read(pb, avctx->extradata, size);
- if (avctx->extradata_size != size)
- return AVERROR(EIO);
return 0;
}
More information about the ffmpeg-cvslog
mailing list