Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-25 19:37:42 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-12-25 20:38:29 +0400
commit61883a2e896a3e427358b11ed73fbb4fdaf8c739 (patch)
treeba04be501a99efd4e608cdba01bfc15eaa0fa56c /libavformat/rl2.c
parent0b9ca70243c43cb95b5d596a827a2b748061dd2d (diff)
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.c6
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) {