Mercurial > libavformat.hg
changeset 2989:c75acc216f3f libavformat
add parenthesis, fix warning: mpegenc.c:303: warning: suggest parentheses around && within ||
author | bcoudurier |
---|---|
date | Thu, 31 Jan 2008 00:25:40 +0000 |
parents | bc099b0e8b6f |
children | 905bf0c5da8c |
files | mpegenc.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegenc.c Thu Jan 31 00:22:25 2008 +0000 +++ b/mpegenc.c Thu Jan 31 00:25:40 2008 +0000 @@ -299,9 +299,9 @@ 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)