[FFmpeg-cvslog] cook: fix use of uninitialized variable
Michael Niedermayer
git at videolan.org
Sun Nov 4 01:04:41 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Nov 4 00:51:37 2012 +0100| [c9e455432988acd414990ba92f782b8e3c4b6aea] | committer: Michael Niedermayer
cook: fix use of uninitialized variable
Fixes CID741418
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c9e455432988acd414990ba92f782b8e3c4b6aea
---
libavcodec/cook.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index 118d1af..cc256f6 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -1057,7 +1057,7 @@ static av_cold int cook_decode_init(AVCodecContext *avctx)
int extradata_size = avctx->extradata_size;
int s = 0;
unsigned int channel_mask = 0;
- int samples_per_frame;
+ int samples_per_frame = 0;
int ret;
q->avctx = avctx;
More information about the ffmpeg-cvslog
mailing list