[FFmpeg-cvslog] libgsmdec: do not needlessly set *data_size to 0

Justin Ruggles git at videolan.org
Thu Nov 3 02:23:10 CET 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Fri Oct 28 10:10:12 2011 -0400| [9671db824565658154b638c97cfd3a9733117400] | committer: Justin Ruggles

libgsmdec: do not needlessly set *data_size to 0

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

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

diff --git a/libavcodec/libgsm.c b/libavcodec/libgsm.c
index 6362f51..790eacd 100644
--- a/libavcodec/libgsm.c
+++ b/libavcodec/libgsm.c
@@ -175,7 +175,6 @@ static int libgsm_decode_frame(AVCodecContext *avctx,
         return AVERROR(EINVAL);
     }
 
-    *data_size = 0; /* In case of error */
     if(buf_size < avctx->block_align) return -1;
     switch(avctx->codec_id) {
     case CODEC_ID_GSM:



More information about the ffmpeg-cvslog mailing list