[vlc-commits] psychedelic: fix scaling crash due to invalid video format
Rémi Denis-Courmont
git at videolan.org
Mon Nov 10 22:00:52 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov 10 23:00:38 2014 +0200| [61ed600c10c3521aa92054da6c19bc8d80bbf245] | committer: Rémi Denis-Courmont
psychedelic: fix scaling crash due to invalid video format
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=61ed600c10c3521aa92054da6c19bc8d80bbf245
---
modules/video_filter/psychedelic.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/video_filter/psychedelic.c b/modules/video_filter/psychedelic.c
index fa7cce4..cbca378 100644
--- a/modules/video_filter/psychedelic.c
+++ b/modules/video_filter/psychedelic.c
@@ -187,6 +187,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
fmt_out = p_filter->fmt_out.video;
fmt_out.i_width = p_filter->fmt_out.video.i_width*p_filter->p_sys->scale/150;
fmt_out.i_height = p_filter->fmt_out.video.i_height*p_filter->p_sys->scale/150;
+ fmt_out.i_visible_width = fmt_out.i_width;
+ fmt_out.i_visible_height = fmt_out.i_height;
p_converted = image_Convert( p_filter->p_sys->p_image, p_pic,
&(p_pic->format), &fmt_out );
More information about the vlc-commits
mailing list