Mercurial > libavcodec.hg
changeset 3832:3d159e4cde5a libavcodec
Original Commit: r26 | ods15 | 2006-09-22 14:18:22 +0300 (Fri, 22 Sep 2006) | 2 lines
crash fix
author | ods15 |
---|---|
date | Mon, 02 Oct 2006 05:56:03 +0000 |
parents | 7d27ba61600e |
children | d4c01d85fb46 |
files | vorbis_enc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vorbis_enc.c Mon Oct 02 05:56:01 2006 +0000 +++ b/vorbis_enc.c Mon Oct 02 05:56:03 2006 +0000 @@ -225,7 +225,7 @@ fc = &venc->floors[0]; fc->partitions = 1; fc->partition_to_class = av_malloc(sizeof(int) * fc->partitions); - for (i = 0; i < fc->partitions; i++) fc->partition_to_class = 0; + for (i = 0; i < fc->partitions; i++) fc->partition_to_class[i] = 0; fc->nclasses = 1; fc->classes = av_malloc(sizeof(floor_class_t) * fc->nclasses); for (i = 0; i < fc->nclasses; i++) {