summaryrefslogtreecommitdiff
path: root/libavcodec/sipr.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-10-29 00:49:38 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-11-09 14:59:51 -0500
commit0005f9a35bc4b755f79a5cd96c27c4dd312c18b2 (patch)
treeaa3c159166e5120db6adb27287aab8ca0b3df815 /libavcodec/sipr.c
parent9cb70ce34bf12621f6dffc08830aff763d00aa11 (diff)
sipr: do not needlessly set *data_size to 0 when returning an error
Diffstat (limited to 'libavcodec/sipr.c')
-rw-r--r--libavcodec/sipr.c4
1 files changed, 0 insertions, 4 deletions
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;
}