mirror of https://github.com/mpv-player/mpv
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:
parent
6723323303
commit
900e74381f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue