[MPlayer-cvslog] r37362 - trunk/libmpdemux/demux_mpg.c

SubJunk subversion at mplayerhq.hu
Thu Jan 22 03:29:44 CET 2015


Author: SubJunk
Date: Thu Jan 22 03:29:44 2015
New Revision: 37362

Log:
Fixed support for DVD audio

Modified:
   trunk/libmpdemux/demux_mpg.c

Modified: trunk/libmpdemux/demux_mpg.c
==============================================================================
--- trunk/libmpdemux/demux_mpg.c	Sun Jan 18 20:39:27 2015	(r37361)
+++ trunk/libmpdemux/demux_mpg.c	Thu Jan 22 03:29:44 2015	(r37362)
@@ -1107,6 +1107,13 @@ static demuxer_t* demux_mpg_ps_open(demu
 {
     sh_video_t *sh_video = demuxer->video->sh;
 
+    if(demuxer->audio->id!=-2) {
+        if(!ds_fill_buffer(demuxer->audio)){
+            mp_msg(MSGT_DEMUXER,MSGL_INFO,"MPEG: " MSGTR_MissingAudioStream);
+            demuxer->audio->sh=NULL;
+        }
+    }
+
     if(sh_video && !sh_video->format && ps_probe > 0) {
         int head;
         off_t pos = stream_tell(demuxer->stream);


More information about the MPlayer-cvslog mailing list