[FFmpeg-devel] [PATCH 5/5] lavfi/trim: make use of AVFILTER_DEFINE_CLASS

Stefano Sabatini stefasab at gmail.com
Sun May 26 22:50:34 CEST 2013


On date Sunday 2013-05-26 19:36:16 +0000, Paul B Mahol encoded:
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
>  libavfilter/trim.c | 14 ++------------
>  1 file changed, 2 insertions(+), 12 deletions(-)
> 
> diff --git a/libavfilter/trim.c b/libavfilter/trim.c
> index 384028d..96c30b4 100644
> --- a/libavfilter/trim.c
> +++ b/libavfilter/trim.c
> @@ -188,12 +188,7 @@ static const AVOption trim_options[] = {
>  };
>  #undef FLAGS
>  
> -static const AVClass trim_class = {
> -    .class_name = "trim",
> -    .item_name  = av_default_item_name,
> -    .option     = trim_options,
> -    .version    = LIBAVUTIL_VERSION_INT,
> -};
> +AVFILTER_DEFINE_CLASS(trim);
>  
>  static const AVFilterPad trim_inputs[] = {
>      {
> @@ -350,12 +345,7 @@ static const AVOption atrim_options[] = {
>  };
>  #undef FLAGS
>  
> -static const AVClass atrim_class = {
> -    .class_name = "atrim",
> -    .item_name  = av_default_item_name,
> -    .option     = atrim_options,
> -    .version    = LIBAVUTIL_VERSION_INT,
> -};
> +AVFILTER_DEFINE_CLASS(atrim);

LGTM, thanks.
-- 
FFmpeg = Free and Frenzy Majestic Puristic Elastic Gymnast


More information about the ffmpeg-devel mailing list