}
bwidth = av_image_get_linesize(avctx->pix_fmt, width, 0);
+ if (bwidth < 0)
+ return RET_ERROR;
+
if (priv->is_70012) {
int pStride;
pStride = 1280;
else pStride = 1920;
sStride = av_image_get_linesize(avctx->pix_fmt, pStride, 0);
+ if (sStride < 0)
+ return RET_ERROR;
} else {
sStride = bwidth;
}