From d7d48624dd18003bb0c4fd689d4c0540a4fda440 Mon Sep 17 00:00:00 2001
From: ods15 <ods15@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Date: Mon, 2 Oct 2006 05:56:03 +0000
Subject: [PATCH] Original Commit: r26 | ods15 | 2006-09-22 14:18:22 +0300
 (Fri, 22 Sep 2006) | 2 lines

crash fix

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6437 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
---
 libavcodec/vorbis_enc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c
index 528edc69f..246b57978 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++) {
-- 
2.25.4