[FFmpeg-devel] aresample: Propagate pts == AV_NOPTSVALUE.

Nicolas George nicolas.george at normalesup.org
Sun Apr 15 15:45:13 CEST 2012


Le septidi 27 germinal, an CCXX, Robert Nagy a écrit :
> -    outsamplesref->pts = av_rescale(outlink->sample_rate, insamplesref->pts,
> -                                    inlink ->sample_rate);
> +    
> +    if(insamplesref->pts != AV_NOPTS_VALUE)
> +        outsamplesref->pts = av_rescale(outlink->sample_rate, insamplesref->pts,
> +                                        inlink ->sample_rate);

Unless I am mistaken, if insamplesref->pts == AV_NOPTS_VALUE, then
outsamplesref->pts will be left uninitialized.

A long time ago, someone suggested a variant of av_rescale that handles
AV_NOPTS_VALUE, but I do not remember what came of it.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120415/2c3117af/attachment.asc>


More information about the ffmpeg-devel mailing list