summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-01-07 19:07:42 +0100
committerDiego Biurrun <diego@biurrun.de>2012-01-07 22:13:07 +0100
commit3dc99a18d4ae2b9bcc96e00b7f589128717aec64 (patch)
tree895f83e64aae6cdea16c72998257634424866042 /libavformat
parent079688b6cbd2944ab84d3539efcde161aa090fac (diff)
cosmetics: drop some pointless parentheses
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/aviobuf.c2
-rw-r--r--libavformat/mtv.c2
-rw-r--r--libavformat/rmdec.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index dbbbba5535..6cd2cefa7c 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -168,7 +168,7 @@ static void flush_buffer(AVIOContext *s)
void avio_w8(AVIOContext *s, int b)
{
- *(s->buf_ptr)++ = b;
+ *s->buf_ptr++ = b;
if (s->buf_ptr >= s->buf_end)
flush_buffer(s);
}
diff --git a/libavformat/mtv.c b/libavformat/mtv.c
index 4c3b082881..2243733812 100644
--- a/libavformat/mtv.c
+++ b/libavformat/mtv.c
@@ -53,7 +53,7 @@ typedef struct MTVDemuxContext {
static int mtv_probe(AVProbeData *p)
{
/* Magic is 'AMV' */
- if(*(p->buf) != 'A' || *(p->buf+1) != 'M' || *(p->buf+2) != 'V')
+ if (*p->buf != 'A' || *(p->buf + 1) != 'M' || *(p->buf + 2) != 'V')
return 0;
/* Check for nonzero in bpp and (width|height) header fields */
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index 66b6f8a876..75e4833c4c 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -661,7 +661,7 @@ static int rm_assemble_video_frame(AVFormatContext *s, AVIOContext *pb,
vst->videobufpos += len;
rm->remaining_len-= len;
- if(type == 2 || (vst->videobufpos) == vst->videobufsize){
+ if (type == 2 || vst->videobufpos == vst->videobufsize) {
vst->pkt.data[0] = vst->cur_slice-1;
*pkt= vst->pkt;
vst->pkt.data= NULL;