sipr: do not needlessly set *data_size to 0 when returning an error
authorJustin Ruggles <justin.ruggles@gmail.com>
Sat, 29 Oct 2011 04:49:38 +0000 (00:49 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Wed, 9 Nov 2011 19:59:51 +0000 (14:59 -0500)
libavcodec/sipr.c

index 08dd63a..70227c3 100644 (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;
     }