Commit 2289355d authored by Antoine Cellerier's avatar Antoine Cellerier

Don't pretend to have ffmpeg based muxers and demuxers if you don't.

parent 9014d4fc
......@@ -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 */
......@@ -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 */
......
......@@ -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 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment