[FFmpeg-devel] [PATCH 1/2] audio_frame_que: simplify

Michael Niedermayer michaelni at gmx.at
Sun Jul 8 18:53:01 CEST 2012


On Fri, Jun 29, 2012 at 04:20:31PM -0600, Roger Pack wrote:
>    if (f->pts != AV_NOPTS_VALUE) {
> -        new_frame->pts = av_rescale_q(f->pts,
> +        new->pts = av_rescale_q(f->pts,
>                                       afq->avctx->time_base,
>                                       (AVRational){ 1,
> afq->avctx->sample_rate });
> -        afq->next_pts = new_frame->pts + new_frame->duration;
> +        new->pts -= afq->remaining_delay;
> +        if(afq->frame_count && new[-1].pts >= new->pts)
> +            av_log(afq->avctx, AV_LOG_WARNING, "Que input is backward in
> time\n");
>     } else {
> -        new_frame->pts = AV_NOPTS_VALUE;
> -        afq->next_pts  = AV_NOPTS_VALUE;
> +        new->pts = AV_NOPTS_VALUE;
>     }
> 
> 
> As a note, With any builds after May 7, I now get this message when
> transcoding this file:
> http://rogerdpack.t28.net/incoming/asmall.avi
> 
> $ ffmpeg.exe -y -i asmall.avi -vcodec libxvid yo.mp4
> ...
> [libvo_aacenc @ 023980a0] Que input is backward in time
> about 15 times.

i cant reproduce this issue with the file, so i assume it has been
fixed in the meantime

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- 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/20120708/b40ecbca/attachment.asc>


More information about the ffmpeg-devel mailing list