# HG changeset patch # User reimar # Date 1311616883 0 # Node ID 725b020e5c31b5618e7b065a76be2a0d9a18c790 # Parent 93a85875e6ae7e1ef43cc1abcde2b02c44052937 Pass a (half-made-up) timestamp to filter_video, this allows -ass to work. diff -r 93a85875e6ae -r 725b020e5c31 mencoder.c --- a/mencoder.c Mon Jul 25 17:04:32 2011 +0000 +++ b/mencoder.c Mon Jul 25 18:01:23 2011 +0000 @@ -1466,7 +1466,8 @@ ((vf_instance_t *)sh_video->vfilter)->control(sh_video->vfilter, VFCTRL_SKIP_NEXT_FRAME, 0) != CONTROL_TRUE); void *decoded_frame = decode_video(sh_video,frame_data.start,frame_data.in_size, drop_frame, MP_NOPTS_VALUE, NULL); - blit_frame = decoded_frame && filter_video(sh_video, decoded_frame, MP_NOPTS_VALUE);} + // NOTE: v_muxer_time is not really correct, but it allows -ass to work mostly + blit_frame = decoded_frame && filter_video(sh_video, decoded_frame, v_muxer_time);} v_muxer_time = adjusted_muxer_time(mux_v); // update after muxing if (sh_video->vf_initialized < 0) mencoder_exit(1, NULL);