[FFmpeg-devel] [ffmpeg-devel] [PATCH 1/2] lavfi: make AVFilteFormats use int64_t lists to support channel layouts.

Stefano Sabatini stefano.sabatini-lala at poste.it
Thu Jun 9 16:36:16 CEST 2011


On date Thursday 2011-06-09 13:25:25 +0300, Mina Nagy Zaki encoded:
> The list type was changed to int64_t to be able to hold
> channel layouts.
> 
> Usage of avfilter_make_format_list for PixelFromats/[AV]SampleFormats
> had to be changed to use int64_t[] instead of enums, as they are 32bit.

I discussed this with Mina and this looked like the best solution for
avoiding separate int/int64_t functions. If you have reasons to think
there are better solutions, please comment.

[...]
> diff --git a/libavfilter/vsrc_movie.c b/libavfilter/vsrc_movie.c
> index 6c5c831..883e665 100644
> --- a/libavfilter/vsrc_movie.c
> +++ b/libavfilter/vsrc_movie.c
> @@ -201,7 +201,7 @@ static av_cold void uninit(AVFilterContext *ctx)
>  static int query_formats(AVFilterContext *ctx)
>  {
>      MovieContext *movie = ctx->priv;
> -    enum PixelFormat pix_fmts[] = { movie->codec_ctx->pix_fmt, PIX_FMT_NONE 
> };
> +    int64_t pix_fmts[] = { movie->codec_ctx->pix_fmt, PIX_FMT_NONE };

Mangled?


More information about the ffmpeg-devel mailing list