diff options
author | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-05-01 02:04:09 +0000 |
---|---|---|
committer | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-05-01 02:04:09 +0000 |
commit | 5878ff9f5ac9b7cfd74fe87dc022b7b49b85d510 (patch) | |
tree | b26ee91c1fa3f1fee2e70d8c0185ae01d39e8537 /libmpdemux/yuv4mpeg.c | |
parent | 40b6f59ac40789b51eaea28da5a3c2d13ba18098 (diff) | |
download | mpv-5878ff9f5ac9b7cfd74fe87dc022b7b49b85d510.tar.bz2 mpv-5878ff9f5ac9b7cfd74fe87dc022b7b49b85d510.tar.xz |
100000l to the fools who don't know C
These were all found while auditing for malloc(A*B) type bugs.
Removing them makes it easier to find real incorrect usage and makes
the code more readable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18367 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/yuv4mpeg.c')
-rw-r--r-- | libmpdemux/yuv4mpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/yuv4mpeg.c b/libmpdemux/yuv4mpeg.c index f746da21c2..e22cc11de8 100644 --- a/libmpdemux/yuv4mpeg.c +++ b/libmpdemux/yuv4mpeg.c @@ -103,7 +103,7 @@ ssize_t y4m_write(int fd, char *buf, size_t len) static char *y4m_new_xtag(void) { - return _y4m_alloc(Y4M_MAX_XTAG_SIZE * sizeof(char)); + return _y4m_alloc(Y4M_MAX_XTAG_SIZE); } |