# HG changeset patch # User reimar # Date 1275850129 0 # Node ID affa412d5500791dd997e969ac02d7cd04d8704a # Parent d046a7103934131f06ace21707674e62c8b47b37 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. diff -r d046a7103934 -r affa412d5500 rmdec.c --- a/rmdec.c Sun Jun 06 18:29:42 2010 +0000 +++ b/rmdec.c Sun Jun 06 18:48:49 2010 +0000 @@ -481,7 +481,8 @@ if (!data_off) 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); url_fseek(pb, data_off + 18, SEEK_SET); }