[FFmpeg-cvslog] gsmdec: 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:09:45 2011 -0400| [a2e255783e2701b1bd4b59c1c309580f375fb138] | committer: Justin Ruggles

gsmdec: do not needlessly set *data_size to 0

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

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

diff --git a/libavcodec/gsmdec.c b/libavcodec/gsmdec.c
index 77c22e5..f084b14 100644
--- a/libavcodec/gsmdec.c
+++ b/libavcodec/gsmdec.c
@@ -65,7 +65,7 @@ static int gsm_decode_frame(AVCodecContext *avctx, void *data,
         av_log(avctx, AV_LOG_ERROR, "Output buffer is too small\n");
         return AVERROR(EINVAL);
     }
-    *data_size = 0;
+
     if(buf_size < avctx->block_align)
         return AVERROR_INVALIDDATA;
 



More information about the ffmpeg-cvslog mailing list