# HG changeset patch # User diego # Date 1210065396 0 # Node ID 1de87c1b6a12604566e7c56b4a8fb7009485be42 # Parent ce8070648576d832ce82fee28d7d08eeabe72258 Remove unnecessary parentheses from return calls. diff -r ce8070648576 -r 1de87c1b6a12 bethsoftvid.c --- a/bethsoftvid.c Mon May 05 09:17:56 2008 +0000 +++ b/bethsoftvid.c Tue May 06 09:16:36 2008 +0000 @@ -202,7 +202,7 @@ audio_length = get_le16(pb); ret_value = av_get_packet(pb, pkt, audio_length); pkt->stream_index = 1; - return (ret_value != audio_length ? AVERROR(EIO) : ret_value); + return ret_value != audio_length ? AVERROR(EIO) : ret_value; case VIDEO_P_FRAME: case VIDEO_YOFF_P_FRAME: diff -r ce8070648576 -r 1de87c1b6a12 dv.c --- a/dv.c Mon May 05 09:17:56 2008 +0000 +++ b/dv.c Tue May 06 09:16:36 2008 +0000 @@ -87,7 +87,7 @@ return NULL; } - return (frame[offs] == t ? &frame[offs] : NULL); + return frame[offs] == t ? &frame[offs] : NULL; } /* diff -r ce8070648576 -r 1de87c1b6a12 gif.c --- a/gif.c Mon May 05 09:17:56 2008 +0000 +++ b/gif.c Tue May 06 09:16:36 2008 +0000 @@ -236,7 +236,7 @@ /* this is maybe slow, but allows for extensions */ static inline unsigned char gif_clut_index(uint8_t r, uint8_t g, uint8_t b) { - return ((((r)/47)%6)*6*6+(((g)/47)%6)*6+(((b)/47)%6)); + return (((r) / 47) % 6) * 6 * 6 + (((g) / 47) % 6) * 6 + (((b) / 47) % 6); } diff -r ce8070648576 -r 1de87c1b6a12 movenc.c --- a/movenc.c Mon May 05 09:17:56 2008 +0000 +++ b/movenc.c Tue May 06 09:16:36 2008 +0000 @@ -1247,7 +1247,7 @@ static uint16_t language_code (const char *str) { - return ((((str[0]-0x60) & 0x1F)<<10) + (((str[1]-0x60) & 0x1F)<<5) + ((str[2]-0x60) & 0x1F)); + return (((str[0]-0x60) & 0x1F) << 10) + (((str[1]-0x60) & 0x1F) << 5) + ((str[2]-0x60) & 0x1F); } static int mov_write_uuidusmt_tag (ByteIOContext *pb, AVFormatContext *s) diff -r ce8070648576 -r 1de87c1b6a12 mp3.c --- a/mp3.c Mon May 05 09:17:56 2008 +0000 +++ b/mp3.c Tue May 06 09:16:36 2008 +0000 @@ -160,7 +160,7 @@ /* buf must be ID3v2_HEADER_SIZE byte long */ static int id3v2_match(const uint8_t *buf) { - return (buf[0] == 'I' && + return buf[0] == 'I' && buf[1] == 'D' && buf[2] == '3' && buf[3] != 0xff && @@ -168,7 +168,7 @@ (buf[6] & 0x80) == 0 && (buf[7] & 0x80) == 0 && (buf[8] & 0x80) == 0 && - (buf[9] & 0x80) == 0); + (buf[9] & 0x80) == 0; } static unsigned int id3v2_get_size(ByteIOContext *s, int len) diff -r ce8070648576 -r 1de87c1b6a12 mpegts.c --- a/mpegts.c Mon May 05 09:17:56 2008 +0000 +++ b/mpegts.c Tue May 06 09:16:36 2008 +0000 @@ -227,7 +227,7 @@ } } - return (!used && discarded); + return !used && discarded; } /** diff -r ce8070648576 -r 1de87c1b6a12 mtv.c --- a/mtv.c Mon May 05 09:17:56 2008 +0000 +++ b/mtv.c Tue May 06 09:16:36 2008 +0000 @@ -124,7 +124,7 @@ if(url_fseek(pb, MTV_HEADER_SIZE, SEEK_SET) != MTV_HEADER_SIZE) return AVERROR(EIO); - return(0); + return 0; } @@ -171,7 +171,7 @@ pkt->stream_index = VIDEO_SID; } - return(ret); + return ret; } AVInputFormat mtv_demuxer = { diff -r ce8070648576 -r 1de87c1b6a12 rtsp.c --- a/rtsp.c Mon May 05 09:17:56 2008 +0000 +++ b/rtsp.c Tue May 06 09:16:36 2008 +0000 @@ -90,7 +90,7 @@ static int redir_isspace(int c) { - return (c == ' ' || c == '\t' || c == '\n' || c == '\r'); + return c == ' ' || c == '\t' || c == '\n' || c == '\r'; } static void skip_spaces(const char **pp) diff -r ce8070648576 -r 1de87c1b6a12 utils.c --- a/utils.c Mon May 05 09:17:56 2008 +0000 +++ b/utils.c Tue May 06 09:16:36 2008 +0000 @@ -1690,7 +1690,7 @@ val = 1; break; } - return (enc->codec_id != CODEC_ID_NONE && val != 0); + return enc->codec_id != CODEC_ID_NONE && val != 0; } static int try_decode_frame(AVStream *st, const uint8_t *data, int size)