Commit 5f6a0e03 authored by reimar's avatar reimar

Do not read the RM index when input is streamed (since it requires seeking

forward and then back again) or AVFMT_FLAG_IGNIDX is set.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23509 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 39938876
...@@ -481,7 +481,8 @@ static int rm_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -481,7 +481,8 @@ static int rm_read_header(AVFormatContext *s, AVFormatParameters *ap)
if (!data_off) if (!data_off)
data_off = url_ftell(pb) - 18; data_off = url_ftell(pb) - 18;
if (indx_off && url_fseek(pb, indx_off, SEEK_SET) >= 0) { if (indx_off && !url_is_streamed(pb) && !(s->flags & AVFMT_FLAG_IGNIDX) &&
url_fseek(pb, indx_off, SEEK_SET) >= 0) {
rm_read_index(s); rm_read_index(s);
url_fseek(pb, data_off + 18, SEEK_SET); url_fseek(pb, data_off + 18, SEEK_SET);
} }
......
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