[FFmpeg-devel] [PATCH 1/3] vf_tile: set frame_rate.

Stefano Sabatini stefasab at gmail.com
Sun Jun 10 12:57:43 CEST 2012


On date Sunday 2012-06-10 11:03:36 +0200, Nicolas George encoded:
> 
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
>  libavfilter/vf_tile.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavfilter/vf_tile.c b/libavfilter/vf_tile.c
> index 031757a..c4d5f9c 100644
> --- a/libavfilter/vf_tile.c
> +++ b/libavfilter/vf_tile.c
> @@ -80,6 +80,8 @@ static int config_props(AVFilterLink *outlink)
>      outlink->w = tile->w * inlink->w;
>      outlink->h = tile->h * inlink->h;
>      outlink->sample_aspect_ratio = inlink->sample_aspect_ratio;
> +    outlink->frame_rate = av_mul_q(inlink->frame_rate,
> +                                   (AVRational){ 1, tile->w * tile->h });
>      ff_draw_init(&tile->draw, inlink->format, 0);
>      /* TODO make the color an option, or find an unified way of choosing it */
>      ff_draw_color(&tile->draw, &tile->blank, (uint8_t[]){ 0, 0, 0, -1 });

LGTM.

BTW I missed the discussion on the frame-rate, how are we supposed to
deal with in case of non-constant frame-rate (e.g. a setpts with a
bizzarre expression)?
-- 
FFmpeg = Frenzy and Fabulous MultiPurpose Elitarian Guru


More information about the ffmpeg-devel mailing list