[Libav-user] Invalid Handle was specified - av_guess_format /avformat_alloc_context
Marlon at scansoft.co.za
Fri Sep 23 07:58:15 CEST 2011
Thanks for your response. Yes I did call av_register_all();. I also
used my C extern braces around <avcodec.h> and <avformat.h>.
What does avcodec_register_all() do? Should this be called as well?
Your assistance is appreciated.
From: libav-user-bounces at ffmpeg.org
[mailto:libav-user-bounces at ffmpeg.org] On Behalf Of Matthew Einhorn
Sent: 22 September 2011 10:01 PM
To: This list is about using libavcodec, libavformat,
libavutil,libavdevice and libavfilter.
Subject: Re: [Libav-user] Invalid Handle was specified - av_guess_format
On Thu, Sep 22, 2011 at 10:13 AM, Marlon Reid <Marlon at scansoft.co.za>
I am experiencing problems with using av_guess_format /
avformat_alloc_context. In my sample code below, my application crashes
on "m_Outfmt = av_guess_format ( "mp3", NULL, NULL);" with the message
"Unhandled exception at 0x773b2865 in test.exe: 0xC0000008: An invalid
handle was specified." .
Have you called av register all before doing anything? Did you put the
include files declaration in extern C braces?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user