From 0005f9a35bc4b755f79a5cd96c27c4dd312c18b2 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Sat, 29 Oct 2011 00:49:38 -0400 Subject: sipr: do not needlessly set *data_size to 0 when returning an error --- libavcodec/sipr.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libavcodec/sipr.c') diff --git a/libavcodec/sipr.c b/libavcodec/sipr.c index 08dd63aa5c..70227c33a3 100644 --- a/libavcodec/sipr.c +++ b/libavcodec/sipr.c @@ -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; } -- cgit v1.2.3