Hi, >From avio.h
/** * Passing this as the "whence" parameter to a seek function causes it to * return the filesize without seeking anywhere. Supporting this is optional. * If it is not supported then the seek function will return <0. */ #define AVSEEK_SIZE 0x10000 So you can return -1 when "whence" is equal to AVSEEK_SIZE. Works just fine for me. On Mon, Apr 13, 2009 at 3:14 PM, Nick Kichukov <[email protected]> wrote: > Hi, > > I am using the init_put_byte, av_open_stream way for quite a time in my > code > and it works just great. However after downloading the latest ffmpeg > SVN(18487) I have issues with this approach. Although the functions report > success after invoking the av_find_stream_info some fileds like duration is > not filled in correctly. This was not an issue with the same media file > with > the same code but older revisions of ffmpeg. Also the duration is filled in > correctly if I use av_open_file method even with the latest revision. > > Also I see that my IOSeek function is invoked with strange parameters. For > "whence" parameter I get value of 65535 which does not map to any of the > SEEK_SET, SEEK_END or SEEK_CUR values. > > Any clue what I may be missing and what is changed aroun the av_open_stream > methods so I do not get duration filled in correctly? > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
