[FFmpeg-cvslog] avfilter/vf_deshake: check rx
Michael Niedermayer
git at videolan.org
Sat May 18 18:36:26 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat May 18 18:28:59 2013 +0200| [9f88db5df1410c6b9f08be77fa119009f63106a6] | committer: Michael Niedermayer
avfilter/vf_deshake: check rx
Fixes crash on SSE2
Fixes Ticket2443
Note, its possible to restructure the code to avoid the 16pixel limitation,
and such change is welcome!
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9f88db5df1410c6b9f08be77fa119009f63106a6
---
libavfilter/vf_deshake.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c
index fd72132..4729c7e 100644
--- a/libavfilter/vf_deshake.c
+++ b/libavfilter/vf_deshake.c
@@ -355,6 +355,11 @@ static av_cold int init(AVFilterContext *ctx)
deshake->blocksize /= 2;
deshake->blocksize = av_clip(deshake->blocksize, 4, 128);
+ if (deshake->rx % 16) {
+ av_log(ctx, AV_LOG_ERROR, "rx must be a multiple of 16\n");
+ return AVERROR_PATCHWELCOME;
+ }
+
if (deshake->filename)
deshake->fp = fopen(deshake->filename, "w");
if (deshake->fp)
More information about the ffmpeg-cvslog
mailing list