mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Error linking libavcodec


From: Timothy Gu
Subject: Re: [Mingw-cross-env-list] Error linking libavcodec
Date: Mon, 8 Dec 2014 08:15:24 -0800

On Mon, Dec 8, 2014 at 6:29 AM, Tony Theodore <address@hidden> wrote:
> Welcome to MXE Alex,
>
>> On 9 Dec 2014, at 00:20, Alex Zelid <address@hidden> wrote:
>>
>>     avcodec_init();
>
> Apparently, that function has been removed from ffmpeg, but I can’t
> find a proper link. Just remove it for the time being till you sort out the 
> link
> errors.

Yes. See 
https://github.com/FFmpeg/FFmpeg/commit/7221139ba0486c24afeac1f41ba97c75f58046b9

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#include <libavcodec/avcodec.h>
#include <libavutil/mathematics.h>

#define INBUF_SIZE 4096
#define AUDIO_INBUF_SIZE 20480
#define AUDIO_REFILL_THRESH 4096

int main(int argc, char **argv)
{
    const char *filename;
    avcodec_register_all();
    printf("Done!\r\n");
    return 0;
}

It seems that you are using the example from FFmpeg 0.8:
https://github.com/FFmpeg/FFmpeg/blob/release/0.8/doc/examples/encoding-example.c
Please DON'T use that, as it uses many deprecated APIs.

Timothy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]