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
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;