[MPlayer-cvslog] r33231 - trunk/libmpcodecs/vd_ffmpeg.c

Alexander Strange astrange at ithinksw.com
Fri Apr 8 02:26:48 CEST 2011


On Thu, Apr 7, 2011 at 5:48 PM, reimar <subversion at mplayerhq.hu> wrote:
> Author: reimar
> Date: Thu Apr  7 23:48:16 2011
> New Revision: 33231
>
> Log:
> More precise decoder lag calculation for frame-multithreading.

has_b_frames already includes thread_count for frame threading.

>
> Modified:
>   trunk/libmpcodecs/vd_ffmpeg.c
>
> Modified: trunk/libmpcodecs/vd_ffmpeg.c
> ==============================================================================
> --- trunk/libmpcodecs/vd_ffmpeg.c       Thu Apr  7 23:08:49 2011        (r33230)
> +++ trunk/libmpcodecs/vd_ffmpeg.c       Thu Apr  7 23:48:16 2011        (r33231)
> @@ -173,6 +173,8 @@ static int control(sh_video_t *sh, int c
>         avcodec_flush_buffers(avctx);
>         return CONTROL_TRUE;
>     case VDCTRL_QUERY_UNSEEN_FRAMES:
> +        if (avctx->active_thread_type & FF_THREAD_FRAME)
> +          return avctx->has_b_frames + avctx->thread_count + 10;
>         return avctx->has_b_frames + 10;
>     }
>     return CONTROL_UNKNOWN;
> _______________________________________________
> MPlayer-cvslog mailing list
> MPlayer-cvslog at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-cvslog
>


More information about the MPlayer-cvslog mailing list