[Libav-user] Invalid Handle was specified - av_guess_format /avformat_alloc_context

Marlon Reid Marlon at scansoft.co.za
Fri Sep 23 07:58:15 CEST 2011


Hi Matt,
 
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
/avformat_alloc_context


On Thu, Sep 22, 2011 at 10:13 AM, Marlon Reid <Marlon at scansoft.co.za>
wrote:


	
	Hi,
	
	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?

Matt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20110923/347fc588/attachment.html>


More information about the Libav-user mailing list