[MPlayer-dev-eng] fix for using -hr-edl-seek and -ovc copy with mencoder

Oded Shimon ods15 at ods15.dyndns.org
Sun Mar 18 18:41:48 CET 2007


On Sun, Mar 18, 2007 at 06:18:00PM +0100, Guillaume POIRIER wrote:
> Oded, could you look at the attached patch? EDL is your baby....

...

> Index: mencoder.c
> ===================================================================
> --- mencoder.c	(revision 22100)
> +++ mencoder.c	(working copy)
> @@ -1684,8 +1684,11 @@
>          a_pts = forward_audio(sh_video->pts - frame_data->frame_time + audio_delay, d_audio, mux_a);
>  
>          if (done) {
> -            frame_data->already_read = 1;
> -            if (!framecopy || (sh_video->ds->flags & 1)) return 1;
> +	    /* In copy mode, wait for a keyframe before stopping */
> +            if (!framecopy || (sh_video->ds->flags & 1)) {
> +		frame_data->already_read = 1;
> +		return 1;
> +	    }
>          }
>          if (sh_video->pts >= end_pts) done = 1;
>  

... It... is already committed .... :) from some weeks ago. i think this 
patch was submitted twice :)

- ods15



More information about the MPlayer-dev-eng mailing list