Page 1 of 1

Using avformat_find_stream_info with custom IO

Posted: Sun Sep 04, 2011 1:38 pm
by benjysmith
I am using avformat_find_stream_info to get stream information about a file containing raw h.264.
First I use avformat_open_input to the file then I call avformat_find_stream_info and it detects the single stream correctly.

However when I use a custom IO handler in the call to avformat_open_input, avformat_find_stream_info does not detect the streams (it returns -1).

Can you help me understand why?
Is there another way to detect the stream when using customer IO?