]> git.sesse.net Git - vlc/commitdiff
Don't pretend to have ffmpeg based muxers and demuxers if you don't.
authorAntoine Cellerier <dionoea@videolan.org>
Sun, 16 Dec 2007 21:02:23 +0000 (21:02 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 16 Dec 2007 21:02:23 +0000 (21:02 +0000)
modules/codec/ffmpeg/demux.c
modules/codec/ffmpeg/ffmpeg.c
modules/codec/ffmpeg/mux.c

index 3ae0570b890b8cb60b45d9d692fb5300414dd802..80c4943af3682c7be52d22373a1cfb6acb67c3a3 100644 (file)
@@ -497,15 +497,4 @@ static offset_t IOSeek( void *opaque, offset_t offset, int whence )
     return stream_Tell( p_demux->s );
 }
 
-#else /* HAVE_FFMPEG_AVFORMAT_H */
-
-int E_(OpenDemux)( vlc_object_t *p_this )
-{
-    return VLC_EGENERIC;
-}
-
-void E_(CloseDemux)( vlc_object_t *p_this )
-{
-}
-
 #endif /* HAVE_FFMPEG_AVFORMAT_H */
index 3942adaf68388096135cc94a48efdd07c33005f0..8e80787203dd0fde603a39ae1f15ff75d2dfa66c 100644 (file)
@@ -192,6 +192,7 @@ vlc_module_begin();
     add_integer( ENC_CFG_PREFIX "chroma-elim-threshold", 0, NULL,
                  ENC_CHROMA_ELIM_TEXT, ENC_CHROMA_ELIM_LONGTEXT, VLC_TRUE );
 
+#if defined(HAVE_FFMPEG_AVFORMAT_H) || defined(HAVE_LIBAVFORMAT_TREE)
     /* demux submodule */
     add_submodule();
     set_description( _("FFmpeg demuxer" ) );
@@ -205,6 +206,7 @@ vlc_module_begin();
     add_string( "ffmpeg-mux", NULL, NULL, MUX_TEXT,
                 MUX_LONGTEXT, VLC_TRUE );
     set_callbacks( E_(OpenMux), E_(CloseMux) );
+#endif
 
 #if defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE)
     /* video filter submodule */
index 01b1b6ac942f51f1a7f53ba10014e75db31a6e6f..cf9c7cb3286278b248bb4b4d5da5a55de9c4d17b 100644 (file)
@@ -252,6 +252,9 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
         codec->time_base.den = p_input->p_fmt->video.i_frame_rate;
         codec->time_base.num = p_input->p_fmt->video.i_frame_rate_base;
         break;
+
+    default:
+        msg_Warn( p_mux, "Unhandled ES category" );
     }
 
     codec->bit_rate = p_input->p_fmt->i_bitrate;
@@ -497,15 +500,4 @@ static offset_t IOSeek( void *opaque, offset_t offset, int whence )
     return 0;
 }
 
-#else /* HAVE_FFMPEG_AVFORMAT_H */
-
-int E_(OpenMux)( vlc_object_t *p_this )
-{
-    return VLC_EGENERIC;
-}
-
-void E_(CloseMux)( vlc_object_t *p_this )
-{
-}
-
 #endif /* HAVE_FFMPEG_AVFORMAT_H */