aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rmdec.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2010-01-08 17:15:46 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-01-08 17:15:46 +0000
commitf9664ca026485f59e14a072fcb6e45930ec928ff (patch)
tree5cd9b8a7d9fb5615ac36730651786f4e00451ab2 /libavformat/rmdec.c
parent4536c8e603fe71ba09f09999402205f82fe773cd (diff)
downloadffmpeg-f9664ca026485f59e14a072fcb6e45930ec928ff.tar.gz
Use the correct ByteIOContext in extradata parsing.Fixes half of issue
1658. Originally committed as revision 21095 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r--libavformat/rmdec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index 1da024aad6..ff93e515cd 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -245,7 +245,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, ByteIOContext *pb,
}
st->codec->block_align = ast->sub_packet_size;
}
- if ((ret = rm_read_extradata(s->pb, st->codec, codecdata_length)) < 0)
+ if ((ret = rm_read_extradata(pb, st->codec, codecdata_length)) < 0)
return ret;
if(ast->audio_framesize >= UINT_MAX / sub_packet_h){
@@ -267,7 +267,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, ByteIOContext *pb,
}
if (codecdata_length >= 1) {
get_byte(pb);
- if ((ret = rm_read_extradata(s->pb, st->codec, codecdata_length - 1)) < 0)
+ if ((ret = rm_read_extradata(pb, st->codec, codecdata_length - 1)) < 0)
return ret;
}
break;
@@ -321,7 +321,7 @@ ff_rm_read_mdpr_codecdata (AVFormatContext *s, ByteIOContext *pb,
fps2= get_be16(pb);
get_be16(pb);
- if ((ret = rm_read_extradata(s->pb, st->codec, codec_data_size - (url_ftell(pb) - codec_pos))) < 0)
+ if ((ret = rm_read_extradata(pb, st->codec, codec_data_size - (url_ftell(pb) - codec_pos))) < 0)
return ret;
// av_log(s, AV_LOG_DEBUG, "fps= %d fps2= %d\n", fps, fps2);