From ea213f826c4934681e77c6af348f069f5b04e456 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Wed, 7 Aug 2013 14:52:43 +0300 Subject: 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 --- gst/videoparsers/gstvc1parse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gst') 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; -- cgit v1.2.1