Commit ced26863 authored by rbultje's avatar rbultje

Use the correct ByteIOContext in extradata parsing.Fixes half of issue

1658.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21095 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b2896c4f
...@@ -245,7 +245,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, ByteIOContext *pb, ...@@ -245,7 +245,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, ByteIOContext *pb,
} }
st->codec->block_align = ast->sub_packet_size; 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; return ret;
if(ast->audio_framesize >= UINT_MAX / sub_packet_h){ if(ast->audio_framesize >= UINT_MAX / sub_packet_h){
...@@ -267,7 +267,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, ByteIOContext *pb, ...@@ -267,7 +267,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, ByteIOContext *pb,
} }
if (codecdata_length >= 1) { if (codecdata_length >= 1) {
get_byte(pb); 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; return ret;
} }
break; break;
...@@ -321,7 +321,7 @@ ff_rm_read_mdpr_codecdata (AVFormatContext *s, ByteIOContext *pb, ...@@ -321,7 +321,7 @@ ff_rm_read_mdpr_codecdata (AVFormatContext *s, ByteIOContext *pb,
fps2= get_be16(pb); fps2= get_be16(pb);
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; return ret;
// av_log(s, AV_LOG_DEBUG, "fps= %d fps2= %d\n", fps, fps2); // av_log(s, AV_LOG_DEBUG, "fps= %d fps2= %d\n", fps, fps2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment