Commit 9671db82 authored by Justin Ruggles's avatar Justin Ruggles

libgsmdec: do not needlessly set *data_size to 0

parent a2e25578
...@@ -175,7 +175,6 @@ static int libgsm_decode_frame(AVCodecContext *avctx, ...@@ -175,7 +175,6 @@ static int libgsm_decode_frame(AVCodecContext *avctx,
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
*data_size = 0; /* In case of error */
if(buf_size < avctx->block_align) return -1; if(buf_size < avctx->block_align) return -1;
switch(avctx->codec_id) { switch(avctx->codec_id) {
case CODEC_ID_GSM: case CODEC_ID_GSM:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment