summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2013-08-07 14:52:43 +0300
committerTim-Philipp Müller <tim@centricular.net>2013-08-12 16:12:52 +0100
commitea213f826c4934681e77c6af348f069f5b04e456 (patch)
tree45e46aeec815f65e29120b5eefa1010fe973900b /gst
parent0d4c2f42e9ba8810f6fc5e83c15c1980558239d0 (diff)
downloadgstreamer-plugins-bad-ea213f826c4934681e77c6af348f069f5b04e456.tar.gz
vc1parse: Fix seq hdr STRUCT_A handling for advanced profile.
The Sequence Header Data Structure STRUCT_A for advanced profile may be eight consecutive zero bytes.Don't try to override the width and height values in this case. https://bugzilla.gnome.org/show_bug.cgi?id=705667
Diffstat (limited to 'gst')
-rw-r--r--gst/videoparsers/gstvc1parse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/videoparsers/gstvc1parse.c b/gst/videoparsers/gstvc1parse.c
index e4d46569e..3e974f257 100644
--- a/gst/videoparsers/gstvc1parse.c
+++ b/gst/videoparsers/gstvc1parse.c
@@ -1415,7 +1415,8 @@ gst_vc1_parse_handle_seq_layer (GstVC1Parse * vc1parse,
width = vc1parse->seq_layer.struct_a.vert_size;
height = vc1parse->seq_layer.struct_a.horiz_size;
- if (vc1parse->width != width || vc1parse->height != height) {
+ if (width > 0 && height > 0
+ && (vc1parse->width != width || vc1parse->height != height)) {
vc1parse->update_caps = TRUE;
vc1parse->width = width;
vc1parse->height = height;