diff options
author | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 05:56:03 +0000 |
---|---|---|
committer | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 05:56:03 +0000 |
commit | 2d06ce4c879549f13fc1c514cdb5680603f635d1 (patch) | |
tree | e5ddece72e23ef5a8922fc5aca9c752f69b189ec | |
parent | ae9b187ab2595e2d4de4af3e17103353b741f8a4 (diff) | |
download | ffmpeg-2d06ce4c879549f13fc1c514cdb5680603f635d1.tar.gz |
Original Commit: r26 | ods15 | 2006-09-22 14:18:22 +0300 (Fri, 22 Sep 2006) | 2 lines
crash fix
Originally committed as revision 6437 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/vorbis_enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c index 528edc69fd..246b579787 100644 --- a/libavcodec/vorbis_enc.c +++ b/libavcodec/vorbis_enc.c @@ -225,7 +225,7 @@ static void create_vorbis_context(venc_context_t * venc, AVCodecContext * avccon 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++) { |