[vlc-commits] psychedelic: fix scaling crash due to invalid video format
Rémi Denis-Courmont
git at videolan.org
Mon Nov 10 22:01:04 CET 2014
vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov 10 23:00:38 2014 +0200| [e0218024c96369dcffda5250e29ad7a1f57324d1] | committer: Rémi Denis-Courmont
psychedelic: fix scaling crash due to invalid video format
(cherry picked from commit 61ed600c10c3521aa92054da6c19bc8d80bbf245)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=e0218024c96369dcffda5250e29ad7a1f57324d1
---
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