aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libgsm.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-10-28 10:10:12 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-11-02 14:41:16 -0400
commit9671db824565658154b638c97cfd3a9733117400 (patch)
treea2d9e2a6c8bc0af2894d68f511ca40e6c06e680b /libavcodec/libgsm.c
parenta2e255783e2701b1bd4b59c1c309580f375fb138 (diff)
downloadffmpeg-9671db824565658154b638c97cfd3a9733117400.tar.gz
libgsmdec: do not needlessly set *data_size to 0
Diffstat (limited to 'libavcodec/libgsm.c')
-rw-r--r--libavcodec/libgsm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/libgsm.c b/libavcodec/libgsm.c
index 6362f51ecb..790eacd6dd 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: