Browse Source

avformat/rmdec: use ff_get_extradata()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
fd335aa326
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      libavformat/rmdec.c

+ 1
- 4
libavformat/rmdec.c View File

@@ -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;
}



Loading…
Cancel
Save