When playing an audio only file use audio time instead of video time to

set EDL mark. Fixes a NULL pointer dereference.
Problem noticed by Robert Henney, robh A rut org.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18714 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
uau 2006-06-14 20:20:28 +00:00
parent 6723323303
commit 900e74381f
1 changed files with 2 additions and 1 deletions

View File

@ -4232,7 +4232,8 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
} break;
case MP_CMD_EDL_MARK:
if( edl_fd ) {
float v = sh_video->pts;
float v = sh_video ? sh_video->pts :
playing_audio_pts(sh_audio, d_audio, audio_out);
fprintf( edl_fd, "%f %f %d\n", v-2, v, 0 );
}
break;