On 04/12/2011 12:04 PM, Anton Khirnov wrote: > On Tue, Apr 12, 2011 at 12:43:23PM +0300, Martin Storsjö wrote: >> From: Michael Niedermayer <[email protected]> >> >> Reading the index currently requires seeking. >> --- >> libavformat/flvdec.c | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c >> index 62d25c8..1a827fd 100644 >> --- a/libavformat/flvdec.c >> +++ b/libavformat/flvdec.c >> @@ -212,7 +212,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream >> *astream, AVStream *vst >> case AMF_DATA_TYPE_OBJECT: { >> unsigned int keylen; >> >> - if (key && !strcmp(KEYFRAMES_TAG, key) && depth == 1) >> + if (ioc->seekable && key && !strcmp(KEYFRAMES_TAG, key) && >> depth == 1) >> if (parse_keyframes_index(s, ioc, vstream, max_pos) < 0) >> return -1; >> >> -- >> 1.7.3.1 >> > > Ok
s/reading/using. You should be able to read it w/out backward seeks. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
