changeset 29342:ec913e932635

Remove pointless stream count checks, new_sh_* already checks for that.
author reimar
date Wed, 24 Jun 2009 08:04:38 +0000
parents 67b3e40a81c2
children 28486169f9e0
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Wed Jun 24 07:49:04 2009 +0000
+++ b/libmpdemux/demux_lavf.c	Wed Jun 24 08:04:38 2009 +0000
@@ -227,8 +227,6 @@
             int override_tag;
             WAVEFORMATEX *wf= calloc(sizeof(WAVEFORMATEX) + codec->extradata_size, 1);
             sh_audio_t* sh_audio;
-            if(priv->audio_streams >= MAX_A_STREAMS)
-                break;
             sh_audio=new_sh_audio(demuxer, i);
             mp_msg(MSGT_DEMUX, MSGL_INFO, MSGTR_AudioID, "lavf", i);
             if(!sh_audio)
@@ -309,8 +307,6 @@
         case CODEC_TYPE_VIDEO:{
             sh_video_t* sh_video;
             BITMAPINFOHEADER *bih;
-            if(priv->video_streams >= MAX_V_STREAMS)
-                break;
             sh_video=new_sh_video(demuxer, i);
             mp_msg(MSGT_DEMUX, MSGL_INFO, MSGTR_VideoID, "lavf", i);
             if(!sh_video) break;
@@ -378,8 +374,6 @@
         case CODEC_TYPE_SUBTITLE:{
             sh_sub_t* sh_sub;
             char type;
-            if(priv->sub_streams >= MAX_S_STREAMS)
-                break;
             /* only support text subtitles for now */
             if(codec->codec_id == CODEC_ID_TEXT)
                 type = 't';