Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: [email protected]
---
libavcodec/rv10.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c
index 0d3b648..a73ebfe 100644
--- a/libavcodec/rv10.c
+++ b/libavcodec/rv10.c
@@ -432,6 +432,10 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx)
av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n");
return AVERROR_INVALIDDATA;
}
+ if (avctx->coded_width <= 0 || avctx->coded_height <= 0) {
+ av_log(avctx, AV_LOG_ERROR, "Invalid picture dimensions\n");
+ return AVERROR_INVALIDDATA;
+ }
ff_MPV_decode_defaults(s);
--
1.7.9.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel