gst-libs/gst/video/video.c: Add guards to these functions to ensure sane input values.
authorTim-Philipp Müller <tim@centricular.net>
Fri, 11 Apr 2008 17:13:52 +0000 (17:13 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 11 Apr 2008 17:13:52 +0000 (17:13 +0000)
commit96a37808161cf07340bb39f8a1e49cff900a9b26
tree9be40811c607ded78e09da1e218381faff9bebff
parentf0738f6fd3edc863c7858c06131b4be7c3bcfe62
gst-libs/gst/video/video.c: Add guards to these functions to ensure sane input values.

Original commit message from CVS:
* gst-libs/gst/video/video.c: (gst_video_format_new_caps),
(gst_video_format_to_fourcc), (gst_video_format_get_row_stride),
(gst_video_format_get_pixel_stride),
(gst_video_format_get_component_width),
(gst_video_format_get_component_height),
(gst_video_format_get_component_offset), (gst_video_format_get_size),
(gst_video_format_convert):
Add guards to these functions to ensure sane input values.
* tests/check/libs/video.c:
Fix unit test not to create caps with width=0 and height=0.
ChangeLog
gst-libs/gst/video/video.c
tests/check/libs/video.c