On Fri, Sep 23, 2011 at 1:58 AM, Marlon Reid <[email protected]> wrote:

> **
> 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?
>
>
>
av_register calls avcodec_register so you don't have to call it. The
av_register functions registers the codec etc so that you can use it.

I don't know why you're having trouble. I ran the following code in MSVC++
2010 using the Zeranoe built dlls without any trouble. Where did you get the
dlls that you're using, did you compile it? Can you run just the following
code and see if you still get an error? Btw, I ran it in debug 64 bit
project.

av_register_all();
AVOutputFormat* m_Outfmt = av_guess_format ( "mp3", NULL, NULL);
if( !m_Outfmt )
    return false;
AVFormatContext* m_OutFmtContext = avformat_alloc_context ();

Matt
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to