[MPlayer-dev-eng] Re: [PATCH] avoid null dereference crash when -edlout w/o vid
Robert Henney
robh at rut.org
Wed May 3 03:57:25 CEST 2006
> Try:
>
> float v = sh_video ? sh_video->pts : sh_audio->pts;
new patch attached that finds the audio pts via the method I found
elsewhere in mplayer.c, and seems to work for me.
-------------- next part --------------
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.951
diff -u -r1.951 mplayer.c
--- mplayer.c 27 Apr 2006 22:13:59 -0000 1.951
+++ mplayer.c 3 May 2006 01:53:39 -0000
@@ -4199,7 +4199,7 @@
} break;
case MP_CMD_EDL_MARK:
if( edl_fd ) {
- float v = sh_video->pts;
+ float v = sh_video ? sh_video->pts : sh_audio->delay - audio_out->get_delay() * playback_speed;
fprintf( edl_fd, "%f %f %d\n", v-2, v, 0 );
}
break;
More information about the MPlayer-dev-eng
mailing list