Commit a2e25578 authored by Justin Ruggles's avatar Justin Ruggles

gsmdec: do not needlessly set *data_size to 0

parent fc43fc9f
...@@ -65,7 +65,7 @@ static int gsm_decode_frame(AVCodecContext *avctx, void *data, ...@@ -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"); av_log(avctx, AV_LOG_ERROR, "Output buffer is too small\n");
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
*data_size = 0;
if(buf_size < avctx->block_align) if(buf_size < avctx->block_align)
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
......
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