changeset 35447:825d6e1cad3e

demux_lavf: support subtitle-only formats.
author reimar
date Fri, 30 Nov 2012 21:31:14 +0000
parents a25cdaa733cb
children f4828b517f4a
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Fri Nov 30 21:22:32 2012 +0000
+++ b/libmpdemux/demux_lavf.c	Fri Nov 30 21:31:14 2012 +0000
@@ -595,6 +595,7 @@
     if(!priv->video_streams){
         if(!priv->audio_streams){
 	    mp_msg(MSGT_HEADER,MSGL_ERR,"LAVF: no audio or video headers found - broken file?\n");
+            if (!priv->sub_streams)
             return NULL;
         }
         demuxer->video->id=-2; // audio-only