sipr: do not needlessly set *data_size to 0 when returning an error

This commit is contained in:
Justin Ruggles 2011-10-29 00:49:38 -04:00
parent 9cb70ce34b
commit 0005f9a35b

View File

@ -518,8 +518,6 @@ static int sipr_decode_frame(AVCodecContext *avctx, void *datap,
av_log(avctx, AV_LOG_ERROR,
"Error processing packet: packet size (%d) too small\n",
avpkt->size);
*data_size = 0;
return -1;
}
@ -530,8 +528,6 @@ static int sipr_decode_frame(AVCodecContext *avctx, void *datap,
av_log(avctx, AV_LOG_ERROR,
"Error processing packet: output buffer (%d) too small\n",
*data_size);
*data_size = 0;
return -1;
}