[FFmpeg-devel] [PATCH 4/6] lavfi/life: make use of AV_OPT_TYPE_VIDEO_RATE

Clément Bœsch ubitux at gmail.com
Tue Mar 26 13:35:07 CET 2013


On Tue, Mar 26, 2013 at 12:26:33PM +0000, Paul B Mahol wrote:
[...]
> -    life->time_base.num = frame_rate.den;
> -    life->time_base.den = frame_rate.num;
> -
>      if (!life->filename) {
>          /* fill the grid randomly */
>          int i;
> @@ -293,7 +282,7 @@ static int init(AVFilterContext *ctx, const char *args)
>  
>      av_log(ctx, AV_LOG_VERBOSE,
>             "s:%dx%d r:%d/%d rule:%s stay_rule:%d born_rule:%d stitch:%d seed:%u\n",
> -           life->w, life->h, frame_rate.num, frame_rate.den,
> +           life->w, life->h, life->frame_rate.num, life->frame_rate.den,
>             life->rule_str, life->stay_rule, life->born_rule, life->stitch,
>             life->random_seed);
>      return 0;
> @@ -315,7 +304,7 @@ static int config_props(AVFilterLink *outlink)
>  
>      outlink->w = life->w;
>      outlink->h = life->h;
> -    outlink->time_base = life->time_base;
> +    outlink->time_base = life->frame_rate;

Isn't this supposed to be swapped?

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130326/875c4820/attachment.asc>


More information about the ffmpeg-devel mailing list