add parenthesis, fix warning: mpegenc.c:303: warning: suggest parentheses around...
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 31 Jan 2008 00:25:40 +0000 (00:25 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 31 Jan 2008 00:25:40 +0000 (00:25 +0000)
Originally committed as revision 11682 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mpegenc.c

index ca9d481..83a628a 100644 (file)
@@ -299,9 +299,9 @@ static int mpeg_mux_init(AVFormatContext *ctx)
     s->packet_number = 0;
     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_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)