gsmdec: do not needlessly set *data_size to 0

pull/2/head
Justin Ruggles 14 years ago
parent fc43fc9faa
commit a2e255783e
  1. 2
      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;

Loading…
Cancel
Save