mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
parent
d631e1b348
commit
eca1614f08
1 changed files with 4 additions and 4 deletions
|
@ -1134,11 +1134,11 @@ gst_h264_parse_make_codec_data (GstH264Parse * h264parse)
|
|||
num_sps++;
|
||||
/* size bytes also count */
|
||||
sps_size += GST_BUFFER_SIZE (nal) - 4 + 2;
|
||||
if (GST_BUFFER_SIZE (nal) >= 7) {
|
||||
if (GST_BUFFER_SIZE (nal) >= 8) {
|
||||
found = TRUE;
|
||||
profile_idc = (GST_BUFFER_DATA (nal))[4];
|
||||
profile_comp = (GST_BUFFER_DATA (nal))[5];
|
||||
level_idc = (GST_BUFFER_DATA (nal))[6];
|
||||
profile_idc = (GST_BUFFER_DATA (nal))[5];
|
||||
profile_comp = (GST_BUFFER_DATA (nal))[6];
|
||||
level_idc = (GST_BUFFER_DATA (nal))[7];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue