[libav-devel] [PATCH] libspeexenc: add libspeex encoder

Diego Biurrun diego at biurrun.de
Tue Oct 18 19:32:43 CEST 2011


On Tue, Oct 18, 2011 at 06:41:30AM -0700, Luca Barbato wrote:
> 
> --- /dev/null
> +++ b/libavcodec/libspeexenc.c
> @@ -0,0 +1,306 @@
> +/*
> + * Copyright (C) 2009 Justin Ruggles
> + * Copyright (c) 2009 Xuggle Incorporated

2011?

> +#include "avcodec.h"
> +#include <speex/speex.h>
> +#include <speex/speex_header.h>
> +#include <speex/speex_stereo.h>

system headers before local headers please

> +AVCodec ff_libspeex_encoder = {
> +    .name = "libspeex",
> +    .type = AVMEDIA_TYPE_AUDIO,
> +    .id = CODEC_ID_SPEEX,
> +    .priv_data_size = sizeof(LibSpeexEncContext),
> +    .init = encode_init,
> +    .encode = encode_frame,
> +    .close = encode_close,
> +    .capabilities = CODEC_CAP_SMALL_LAST_FRAME,
> +    .sample_fmts = (const enum SampleFormat[]){ SAMPLE_FMT_S16, SAMPLE_FMT_FLT,
> +                                                SAMPLE_FMT_NONE },
> +    .long_name = NULL_IF_CONFIG_SMALL("libspeex Speex"),
> +};

Align the '='.

> --- a/libavcodec/version.h
> +++ b/libavcodec/version.h
> @@ -21,7 +21,7 @@
>  
>  #define LIBAVCODEC_VERSION_MAJOR 53
> -#define LIBAVCODEC_VERSION_MINOR  12
> +#define LIBAVCODEC_VERSION_MINOR  13
>  #define LIBAVCODEC_VERSION_MICRO  2

Reset micro.

Diego


More information about the libav-devel mailing list