# HG changeset patch # User aurel # Date 1184425958 0 # Node ID ace9c466cb087bd31cfcfa9b96e9cde1bb9fcdda # Parent 602efea8915d9d8bf4455359442013b8896e2f3d 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 diff -r 602efea8915d -r ace9c466cb08 mpegenc.c --- a/mpegenc.c Sat Jul 14 14:43:06 2007 +0000 +++ b/mpegenc.c Sat Jul 14 15:12:38 2007 +0000 @@ -293,10 +293,12 @@ 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;