mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
video-anc: Fix ADF detection when trying to extract data from vanc
Previously we were checking offset 1 twice, but the second check should've been for offset 2.
This commit is contained in:
parent
72eb7c6a74
commit
2bba48c9b5
1 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ get_ancillary_16 (GstVideoVBIParser * parser, GstVideoAncillary * anc)
|
|||
composite = TRUE;
|
||||
} else if (data[parser->offset] == 0x000 &&
|
||||
data[parser->offset + 1] == 0x3ff &&
|
||||
data[parser->offset + 1] == 0x3ff) {
|
||||
data[parser->offset + 2] == 0x3ff) {
|
||||
/* component */
|
||||
i += 3;
|
||||
composite = FALSE;
|
||||
|
@ -234,7 +234,7 @@ get_ancillary_8 (GstVideoVBIParser * parser, GstVideoAncillary * anc)
|
|||
composite = TRUE;
|
||||
i += 1;
|
||||
} else if (data[parser->offset] == 0x00 &&
|
||||
data[parser->offset + 1] == 0xff && data[parser->offset + 1] == 0xff) {
|
||||
data[parser->offset + 1] == 0xff && data[parser->offset + 2] == 0xff) {
|
||||
/* component */
|
||||
composite = FALSE;
|
||||
i += 3;
|
||||
|
|
Loading…
Reference in a new issue