diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2007-07-14 15:12:38 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2007-07-14 15:12:38 +0000 |
commit | 372a80d15d516058f9f1524216a9b4cfc0031f76 (patch) | |
tree | d61ceb117defe9b6fd737198675eb95dedf849c1 /libavformat/mpegenc.c | |
parent | c3eaeadb4acc934b23dfd25b2198772f67c96a87 (diff) | |
download | ffmpeg-372a80d15d516058f9f1524216a9b4cfc0031f76.tar.gz |
Avoid using undefined symbols.
This fixes the following option set:
--disable-encoders --disable-decoders --disable-parsers --disable-bsfs
--disable-muxers --disable-demuxers --disable-protocols
--enable-muxer=mpeg1system
Originally committed as revision 9650 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpegenc.c')
-rw-r--r-- | libavformat/mpegenc.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index 377fc4240d..e50d824aa8 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -293,10 +293,12 @@ static int mpeg_mux_init(AVFormatContext *ctx) int video_bitrate; s->packet_number = 0; - s->is_vcd = (ctx->oformat == &mpeg1vcd_muxer); - s->is_svcd = (ctx->oformat == &mpeg2svcd_muxer); - s->is_mpeg2 = (ctx->oformat == &mpeg2vob_muxer || ctx->oformat == &mpeg2svcd_muxer || ctx->oformat == &mpeg2dvd_muxer); - s->is_dvd = (ctx->oformat == &mpeg2dvd_muxer); + s->is_vcd = (ENABLE_MPEG1VCD_MUXER && ctx->oformat == &mpeg1vcd_muxer); + s->is_svcd = (ENABLE_MPEG2SVCD_MUXER && ctx->oformat == &mpeg2svcd_muxer); + s->is_mpeg2 = (ENABLE_MPEG2VOB_MUXER && ctx->oformat == &mpeg2vob_muxer || + ENABLE_MPEG2DVD_MUXER && ctx->oformat == &mpeg2dvd_muxer || + ENABLE_MPEG2SVCD_MUXER && ctx->oformat == &mpeg2svcd_muxer); + s->is_dvd = (ENABLE_MPEG2DVD_MUXER && ctx->oformat == &mpeg2dvd_muxer); if(ctx->packet_size) s->packet_size = ctx->packet_size; |