Mercurial > mplayer.hg
changeset 5132:cfccb5dbe992
Fixed problem with seeking/sync when using libfame
libfame seems to not accept some standard fps rates, like 2997/100, this
causes bad syncing with fame sometimes =(
author | mswitch |
---|---|
date | Sat, 16 Mar 2002 06:01:13 +0000 |
parents | cff03e88d331 |
children | 9841a86d66f9 |
files | libvo/vo_dxr3.c |
diffstat | 1 files changed, 4 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_dxr3.c Sat Mar 16 02:46:49 2002 +0000 +++ b/libvo/vo_dxr3.c Sat Mar 16 06:01:13 2002 +0000 @@ -276,8 +276,8 @@ fame_params.quality = 100; fame_params.bitrate = 0; fame_params.slices_per_frame = 1; - fame_params.frames_per_sequence = 0xffffffff; - fame_params.frame_rate_num = 60; + fame_params.frames_per_sequence = 25; + fame_params.frame_rate_num = 25; fame_params.frame_rate_den = 1; fame_params.shape_quality = 100; fame_params.search_range = 8; @@ -309,7 +309,7 @@ } else { avc_context->gop_size = 15; } - avc_context->frame_rate = vo_fps * FRAME_RATE_BASE; + avc_context->frame_rate = (int) vo_fps * FRAME_RATE_BASE; avc_context->bit_rate = 8e6; avc_context->flags = CODEC_FLAG_HQ | CODEC_FLAG_QSCALE; avc_context->quality = 2; @@ -471,10 +471,6 @@ char devname[80]; int fdflags = O_WRONLY; -/* With fame we loose sync and seeking =( */ -#ifdef USE_LIBFAME - noprebuf = 1; -#endif /* Open the control interface */ if (arg && !strcmp("noprebuf", arg)) { printf("VO: [dxr3] Disabling prebuffering.\n"); @@ -544,8 +540,7 @@ } } -#ifdef USE_LIBFAME -#elif USE_LIBAVCODEC +#if !defined(USE_LIBFAME) && defined(USE_LIBAVCODEC) avcodec_init(); avcodec_register_all(); #endif