[FFmpeg-soc] libavfilter: movie source filter

Vitor Sessak vitor1001 at gmail.com
Sun Jan 27 20:18:38 CET 2008


Hi, and sorry for taking so long to look at it.

Víctor Paesa wrote:
> Hi,
> 
> On Jan 27, 2008 3:42 PM, Diego Biurrun <diego at biurrun.de> wrote:
>> On Sun, Jan 27, 2008 at 03:31:48PM +0100, Víctor Paesa wrote:
>>> Here is attached the next revision:

[...]

> +    return 0;
> +}
> +
> +static int config_props(AVFilterLink *link)
> +{
> +    MovieContext *mv = link->src->priv;
> +
> +    link->w = mv->w;
> +    link->h = mv->h;
> +

I think you should set the aspect ratio. Something like

link->dst->outputs[0]->outpic->pixel_aspect.num = 
mv->pCodecCtx->sample_aspect_ratio.num;
link->dst->outputs[0]->outpic->pixel_aspect.den = 
mv->pCodecCtx->sample_aspect_ratio.den;

-Vitor



More information about the FFmpeg-soc mailing list