[FFmpeg-cvslog] a64multienc: fix "warning: buf may be used uninitialized in this function"

Michael Niedermayer git at videolan.org
Sat Feb 25 03:03:05 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Feb 25 02:41:42 2012 +0100| [3d3b603f7f834dad919a3334506a1e5414d7368a] | committer: Michael Niedermayer

a64multienc: fix "warning: buf may be used uninitialized in this function"

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3d3b603f7f834dad919a3334506a1e5414d7368a
---

 libavcodec/a64multienc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/a64multienc.c b/libavcodec/a64multienc.c
index ed8dde5..0d88f72 100644
--- a/libavcodec/a64multienc.c
+++ b/libavcodec/a64multienc.c
@@ -254,7 +254,7 @@ static int a64multi_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     int b_width;
 
     int req_size, ret;
-    uint8_t *buf;
+    uint8_t *buf = NULL;
 
     int *charmap     = c->mc_charmap;
     uint8_t *colram  = c->mc_colram;



More information about the ffmpeg-cvslog mailing list