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