Anton Khirnov wrote
> 
> On Thu, 15 Dec 2011 02:04:59 -0800 (PST), wl2776 <wl2776@> wrote:
>> My application decodes video stream, processes it by its own means and
>> saves
>> to a file using LibAV functions.
>> 
>> To save it to a file, it initializes input AVFormatContext with custom
>> AVIOContext, then uses usual cycle:
>  
>> My problem is that avformat_find_stream_info returns -1 and writes the
>> following messages
>> 
>> I use the following code to initialize AVFormatContext:
>  
>> What's wrong with it?
> 
> You're passing an empty options dict to avformat_open_input().
> Move those av_dict_set() before avformat_open_input() and it should
> work.
> 

Yes, now it works, thank you!



--
View this message in context: 
http://libav-api.1054858.n5.nabble.com/libav-api-How-should-I-specify-options-to-read-raw-video-tp5077052p5077639.html
Sent from the libav-api mailing list archive at Nabble.com.
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to