diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-05-28 22:26:35 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-05-28 22:26:35 +0000 |
commit | 5a96cd64deb38a9e4340f570591fe22b2e1843e1 (patch) | |
tree | 49e04156600f304addc93f7a5171923e28bd317b /libavformat/sierravmd.c | |
parent | 57783b07a0000aaa7509eafa72664cec54750b71 (diff) | |
download | ffmpeg-5a96cd64deb38a9e4340f570591fe22b2e1843e1.tar.gz |
memleak / CID124 RUN2
Originally committed as revision 13512 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/sierravmd.c')
-rw-r--r-- | libavformat/sierravmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sierravmd.c b/libavformat/sierravmd.c index 5e68a81c43..fc757906c4 100644 --- a/libavformat/sierravmd.c +++ b/libavformat/sierravmd.c @@ -146,11 +146,11 @@ static int vmd_read_header(AVFormatContext *s, vmd->frame_table = NULL; sound_buffers = AV_RL16(&vmd->vmd_header[808]); raw_frame_table_size = vmd->frame_count * 6; - raw_frame_table = av_malloc(raw_frame_table_size); if(vmd->frame_count * vmd->frames_per_block >= UINT_MAX / sizeof(vmd_frame_t)){ av_log(s, AV_LOG_ERROR, "vmd->frame_count * vmd->frames_per_block too large\n"); return -1; } + raw_frame_table = av_malloc(raw_frame_table_size); vmd->frame_table = av_malloc((vmd->frame_count * vmd->frames_per_block + sound_buffers) * sizeof(vmd_frame_t)); if (!raw_frame_table || !vmd->frame_table) { av_free(raw_frame_table); |