From: Daniel Caujolle-B. <seg...@cl...> - 2003-01-31 09:27:25
|
Hi Guenter, Miguel, Guenter Bartsch wrote: > hallo miguel, > > >>actually, we need a solution here, the current scheme is just too ugly: >>there is no way to know how much we need to allocate for preview data. >> >>input_plugin.h says: >> >>/* >> * INPUT_CAP_PREVIEW: >> * get_optional_data can handle INPUT_OPTIONAL_DATA_PREVIEW >> * so a non-seekable stream plugin can povide the first >> * few bytes for demuxers to look at them and decide wheter >> * they can handle the stream or not. the preview data must >> * be buffered and delivered again through subsequent >> * read() calls. >> */ >> >>but there is no definition on what is "few bytes" is. > > > ok, let's just define this is 4k :-) and in the asf case, is more than 4096 (IIRC, with the segfaulty URL, it was 4182) Cheers. -- 73's de Daniel, F1RMB. -=- Daniel Caujolle-Bert -=- seg...@cl... -=- -=- f1...@f1... (AMPR NET) -=- |