mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
videoparseutils: Fix for wrong CEA708 minimum size check
The minimum possible size of valid CEA708 data is 3 bytes, not 7 bytes Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2505>
This commit is contained in:
parent
cfc80e5168
commit
f2fa75accb
1 changed files with 5 additions and 1 deletions
|
@ -142,7 +142,11 @@ gst_video_parse_user_data (GstElement * elt, GstVideoParseUserData * user_data,
|
|||
}
|
||||
switch (user_data_type_code) {
|
||||
case A53_USER_DATA_TYPE_CODE_CC_DATA:
|
||||
if (gst_byte_reader_get_remaining (br) < 7) {
|
||||
/* 1 (cc count byte) +
|
||||
* 1 (reserved byte, 0xff) +
|
||||
* 1 (marker_bits, 0xff)
|
||||
*/
|
||||
if (gst_byte_reader_get_remaining (br) < 3) {
|
||||
GST_WARNING_OBJECT (elt,
|
||||
"Closed caption data packet too short, ignoring");
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue