[FFmpeg-devel] [PATCH 3/3] ffplay: increase maximum frame duration to 1 hour

Michael Niedermayer michaelni at gmx.at
Sun Nov 25 22:06:41 CET 2012


On Sun, Nov 25, 2012 at 08:01:23PM +0100, Marton Balint wrote:
> Partially fixes ticket #1707. A-V sync still needs some work after seeking...
> 
> Signed-off-by: Marton Balint <cus at passwd.hu>
> ---
>  ffplay.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/ffplay.c b/ffplay.c
> index a3bda0e..c0f0c30 100644
> --- a/ffplay.c
> +++ b/ffplay.c
> @@ -1318,7 +1318,7 @@ retry:
>  
>              /* compute nominal last_duration */
>              last_duration = vp->pts - is->frame_last_pts;
> -            if (last_duration > 0 && last_duration < 10.0) {
> +            if (last_duration > 0 && last_duration < 3600.0) {
>                  /* if duration of the last frame was sane, update last_duration in video state */
>                  is->frame_last_duration = last_duration;
>              }

This may need a check for AVFMT_TS_DISCONT
because 1h differences in containers with AVFMT_TS_DISCONT are likely
not frame durations but rather discontinuities. while for other
containers they may be frame durations

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- 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/20121125/a1f8e2bb/attachment.asc>


More information about the ffmpeg-devel mailing list