Module: libav
Branch: master
Commit: a2e255783e2701b1bd4b59c1c309580f375fb138

Author:    Justin Ruggles <[email protected]>
Committer: Justin Ruggles <[email protected]>
Date:      Fri Oct 28 10:09:45 2011 -0400

gsmdec: do not needlessly set *data_size to 0

---

 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;
 

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to