[vlc-commits] commit: modules/video_filter/colorthres.c: set default values ( Jean-Paul Saman )
git at videolan.org
git at videolan.org
Tue Sep 7 13:03:12 CEST 2010
vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Sun Aug 29 17:19:03 2010 +0200| [d659fcdc15b517c7da63114ce3ae044a431377d5] | committer: Jean-Paul Saman
modules/video_filter/colorthres.c: set default values
The compiler complained about possible use uninitialized use of the variables
i_u_offset, i_v_offset and i_y_offset.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d659fcdc15b517c7da63114ce3ae044a431377d5
---
modules/video_filter/colorthres.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/video_filter/colorthres.c b/modules/video_filter/colorthres.c
index ace2fda..c6c44e0 100644
--- a/modules/video_filter/colorthres.c
+++ b/modules/video_filter/colorthres.c
@@ -287,7 +287,7 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_pic )
return NULL;
}
- int i_y_offset, i_u_offset, i_v_offset;
+ int i_y_offset = 0, i_u_offset = 0, i_v_offset = 0;
GetPackedYuvOffsets( p_filter->fmt_in.video.i_chroma,
&i_y_offset, &i_u_offset, &i_v_offset );
More information about the vlc-commits
mailing list