[FFmpeg-devel] [PATCH 2/4] vf_frei0r: set outlinks sample aspect ratio to 1

Stefano Sabatini stefasab at gmail.com
Sat Mar 10 15:15:18 CET 2012


On date Saturday 2012-03-10 08:22:34 +0100, Michael Niedermayer encoded:
> From: Baptiste Coudurier <baptiste.coudurier at gmail.com>
> 
> ---
>  libavfilter/vf_frei0r.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c
> index 1bcd09e..a77cedf 100644
> --- a/libavfilter/vf_frei0r.c
> +++ b/libavfilter/vf_frei0r.c
> @@ -418,6 +418,7 @@ static int source_config_props(AVFilterLink *outlink)
>      outlink->w = frei0r->w;
>      outlink->h = frei0r->h;
>      outlink->time_base = frei0r->time_base;
> +    outlink->sample_aspect_ratio = (AVRational){1,1};
>  
>      if (!(frei0r->instance = frei0r->construct(outlink->w, outlink->h))) {
>          av_log(ctx, AV_LOG_ERROR, "Impossible to load frei0r instance");

Can't hurt.
-- 
FFmpeg = Friendly and Frenzy Martial Patchable Empowered Gadget


More information about the ffmpeg-devel mailing list