gsmdec: do not needlessly set *data_size to 0
authorJustin Ruggles <justin.ruggles@gmail.com>
Fri, 28 Oct 2011 14:09:45 +0000 (10:09 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Wed, 2 Nov 2011 18:41:16 +0000 (14:41 -0400)
libavcodec/gsmdec.c

index 77c22e5..f084b14 100644 (file)
@@ -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;