[FFmpeg-devel] [PATCH] Update calls to the deprecated parse_image_size and parse_frame_rate functions

Stefano Sabatini stefano.sabatini-lala
Fri Jun 15 09:06:36 CEST 2007


On date Friday 2007-06-15 07:58:50 +0200, Stefano Sabatini encoded:
> Hi guys,
> 
> this patch changes all the calls to the deprecated parse_image_size
> and parse_frame_rate functions in the ffmpeg code with corresponding
> calls to the recently added av_parse_video_frame_{size,frame}
> functions.
> 

Ehr..., sorry it was *plain wrong*.

[...]
> @@ -2531,8 +2530,8 @@
>      ap->prealloced_context = 1;
>      ap->sample_rate = audio_sample_rate;
>      ap->channels = audio_channels;
> -    ap->time_base.den = frame_rate;
> -    ap->time_base.num = frame_rate_base;
> +    ap->time_base.den = frame_rate.den;
> +    ap->time_base.num = frame_rate.num;

Wrong, it was:
ap->time_base.den = frame_rate.num;
ap->time_base.num = frame_rate.den;

> @@ -2750,11 +2749,11 @@
>                   av_set_double(video_enc, opt_names[i], d);
>          }
>  
> -        video_enc->time_base.den = frame_rate;
> -        video_enc->time_base.num = frame_rate_base;
> +        video_enc->time_base.den = frame_rate.den;
> +        video_enc->time_base.num = frame_rate.num;

Wrong here too, it was instead:
video_enc->time_base.den = frame_rate.num;
video_enc->time_base.num = frame_rate.den;

Sorry for the noise.

Cheers
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: update-calls-to-deprecated-parse-image-size-and-rate-01.patch
Type: text/x-diff
Size: 4065 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070615/0092ed8b/attachment.patch>



More information about the ffmpeg-devel mailing list