summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2007-07-05 03:01:53 +0000
committerVitor Sessak <vitor1001@gmail.com>2007-07-05 03:01:53 +0000
commit8448946e37983a55db92bdf46614de5f9c5ceab1 (patch)
treecea597bbecd24e50de37389de40617295d6e93da /libavcodec
parentc74a8fe62a004f88864f6d6440721e7a4982fb15 (diff)
Remove more useless parentheses.
Originally committed as revision 9471 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/roqvideo.c4
-rw-r--r--libavcodec/roqvideoenc.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/roqvideo.c b/libavcodec/roqvideo.c
index cc2413363d..53d60a19eb 100644
--- a/libavcodec/roqvideo.c
+++ b/libavcodec/roqvideo.c
@@ -118,8 +118,8 @@ static inline void apply_motion_generic(RoqContext *ri, int x, int y, int deltax
for(cp = 0; cp < 3; cp++) {
int outstride = ri->current_frame->linesize[cp];
int instride = ri->last_frame ->linesize[cp];
- block_copy(ri->current_frame->data[cp] + (y*outstride) + x,
- ri->last_frame->data[cp] + (my*instride) + mx,
+ block_copy(ri->current_frame->data[cp] + y*outstride + x,
+ ri->last_frame->data[cp] + my*instride + mx,
outstride, instride, sz);
}
}
diff --git a/libavcodec/roqvideoenc.c b/libavcodec/roqvideoenc.c
index 640ee310c4..380ae9e13c 100644
--- a/libavcodec/roqvideoenc.c
+++ b/libavcodec/roqvideoenc.c
@@ -608,7 +608,7 @@ typedef struct
/* NOTE: Typecodes must be spooled AFTER arguments!! */
static void write_typecode(CodingSpool *s, uint8_t type)
{
- s->typeSpool |= ((type) & 3) << (14 - s->typeSpoolLength);
+ s->typeSpool |= (type & 3) << (14 - s->typeSpoolLength);
s->typeSpoolLength += 2;
if (s->typeSpoolLength == 16) {
bytestream_put_le16(s->pout, s->typeSpool);