[Ffmpeg-devel] Changing "-vstats" option behaviour
Limin Wang
lance.lmwang
Fri Apr 20 11:42:04 CEST 2007
Hi,
> double ti1, bitrate, avg_bitrate;
>
> + /* this is executed just the first time do_video_stats is called */
> if (!fvstats) {
> - today2 = time(NULL);
> - today = localtime(&today2);
> - snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour,
> - today->tm_min,
> - today->tm_sec);
> - fvstats = fopen(filename,"w");
> + fvstats = fopen(vstats_filename, "w");
fclose fvstats in the end?
> +static void opt_vstats_file (const char *arg)
> +{
> + av_free (vstats_filename);
> + vstats_filename=av_strdup (arg);
av_free vstats_filename in the end?
Thanks,
Limin
More information about the ffmpeg-devel
mailing list