diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-25 16:37:42 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-25 17:38:29 +0100 |
commit | 61883a2e896a3e427358b11ed73fbb4fdaf8c739 (patch) | |
tree | ba04be501a99efd4e608cdba01bfc15eaa0fa56c /libavformat/rl2.c | |
parent | 0b9ca70243c43cb95b5d596a827a2b748061dd2d (diff) | |
download | ffmpeg-61883a2e896a3e427358b11ed73fbb4fdaf8c739.tar.gz |
avformat/rl2: use ff_get_extradata()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rl2.c')
-rw-r--r-- | libavformat/rl2.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavformat/rl2.c b/libavformat/rl2.c index 56f4cf29ff..d354339ea3 100644 --- a/libavformat/rl2.c +++ b/libavformat/rl2.c @@ -127,13 +127,9 @@ static av_cold int rl2_read_header(AVFormatContext *s) if(signature == RLV3_TAG && back_size > 0) st->codec->extradata_size += back_size; - if(ff_alloc_extradata(st->codec, st->codec->extradata_size)) + if(ff_get_extradata(st->codec, pb, st->codec->extradata_size) < 0) return AVERROR(ENOMEM); - if(avio_read(pb,st->codec->extradata,st->codec->extradata_size) != - st->codec->extradata_size) - return AVERROR(EIO); - /** setup audio stream if present */ if(sound_rate){ if (!channels || channels > 42) { |