[FFmpeg-cvslog] sipr: do not needlessly set *data_size to 0 when returning an error

Justin Ruggles git at videolan.org
Thu Nov 10 03:59:00 CET 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Oct 29 00:49:38 2011 -0400| [0005f9a35bc4b755f79a5cd96c27c4dd312c18b2] | committer: Justin Ruggles

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0005f9a35bc4b755f79a5cd96c27c4dd312c18b2
---

 libavcodec/sipr.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/libavcodec/sipr.c b/libavcodec/sipr.c
index 08dd63a..70227c3 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;
     }
 



More information about the ffmpeg-cvslog mailing list