mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 05:56:31 +00:00
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
This commit is contained in:
parent
0d4c2f42e9
commit
ea213f826c
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue