[FFmpeg-cvslog] a64multienc: don't write into output buffer when there's no output.

Anton Khirnov git at videolan.org
Fri Feb 24 04:35:02 CET 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Feb 23 10:04:57 2012 +0100| [cfc6ab3199e7ac4197744e17e82144d857886096] | committer: Anton Khirnov

a64multienc: don't write into output buffer when there's no output.

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

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

diff --git a/libavcodec/a64multienc.c b/libavcodec/a64multienc.c
index 532f2a2..d50586e 100644
--- a/libavcodec/a64multienc.c
+++ b/libavcodec/a64multienc.c
@@ -317,8 +317,6 @@ static int a64multi_encode_frame(AVCodecContext *avctx, unsigned char *buf,
             charset  += charset_size;
             req_size += charset_size;
         }
-        /* no charset so clean buf */
-        else memset(buf, 0, charset_size);
 
         /* write x frames to buf */
         for (frame = 0; frame < c->mc_lifetime; frame++) {



More information about the ffmpeg-cvslog mailing list