Replace memset(0) by zero initializations.

Also remove one pointless zero initialization in rangecoder.c.
This commit is contained in:
Diego Biurrun
2011-06-06 14:13:02 +02:00
parent 856c8e0a04
commit a92be9b856
39 changed files with 66 additions and 144 deletions

View File

@@ -573,8 +573,7 @@ static int flac_parse(AVCodecParserContext *s, AVCodecContext *avctx,
av_fifo_generic_write(fpc->fifo_buf, (void*) read_start,
read_end - read_start, NULL);
} else {
int8_t pad[MAX_FRAME_HEADER_SIZE];
memset(pad, 0, sizeof(pad));
int8_t pad[MAX_FRAME_HEADER_SIZE] = { 0 };
av_fifo_generic_write(fpc->fifo_buf, (void*) pad, sizeof(pad), NULL);
}