[FFmpeg-cvslog] error_conceal: fix FPE in guess_dc() with huge sizes.
Michael Niedermayer
git at videolan.org
Fri Mar 23 05:56:50 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Mar 23 05:21:10 2012 +0100| [cc415956a45cd17ab74aae3bb7465953c387d458] | committer: Michael Niedermayer
error_conceal: fix FPE in guess_dc() with huge sizes.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cc415956a45cd17ab74aae3bb7465953c387d458
---
libavcodec/error_resilience.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c
index 1c1420f..cd6aa01 100644
--- a/libavcodec/error_resilience.c
+++ b/libavcodec/error_resilience.c
@@ -174,7 +174,7 @@ static void guess_dc(MpegEncContext *s, int16_t *dc, int w,
{
int b_x, b_y;
int16_t (*col )[4] = av_malloc(stride*h*sizeof( int16_t)*4);
- uint16_t (*dist)[4] = av_malloc(stride*h*sizeof(uint16_t)*4);
+ uint32_t (*dist)[4] = av_malloc(stride*h*sizeof(uint32_t)*4);
for(b_y=0; b_y<h; b_y++){
int color= 1024;
More information about the ffmpeg-cvslog
mailing list