diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-10-29 00:49:38 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-11-09 14:59:51 -0500 |
commit | 0005f9a35bc4b755f79a5cd96c27c4dd312c18b2 (patch) | |
tree | aa3c159166e5120db6adb27287aab8ca0b3df815 /libavcodec | |
parent | 9cb70ce34bf12621f6dffc08830aff763d00aa11 (diff) | |
download | ffmpeg-0005f9a35bc4b755f79a5cd96c27c4dd312c18b2.tar.gz |
sipr: do not needlessly set *data_size to 0 when returning an error
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/sipr.c | 4 |
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; } |