mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
h264parse: correct the size argument of gst_h264_parser_identify_nalu_avc()
This commit is contained in:
parent
bbc30f3644
commit
3129ea29b1
1 changed files with 2 additions and 2 deletions
|
@ -1248,7 +1248,7 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
|
||||||
off = 6;
|
off = 6;
|
||||||
for (i = 0; i < num_sps; i++) {
|
for (i = 0; i < num_sps; i++) {
|
||||||
parseres = gst_h264_parser_identify_nalu_avc (h264parse->nalparser,
|
parseres = gst_h264_parser_identify_nalu_avc (h264parse->nalparser,
|
||||||
data, off, size - off, 2, &nalu);
|
data, off, size, 2, &nalu);
|
||||||
if (parseres != GST_H264_PARSER_OK)
|
if (parseres != GST_H264_PARSER_OK)
|
||||||
goto avcc_too_small;
|
goto avcc_too_small;
|
||||||
|
|
||||||
|
@ -1261,7 +1261,7 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
|
||||||
size++;
|
size++;
|
||||||
for (i = 0; i < num_pps; i++) {
|
for (i = 0; i < num_pps; i++) {
|
||||||
parseres = gst_h264_parser_identify_nalu_avc (h264parse->nalparser,
|
parseres = gst_h264_parser_identify_nalu_avc (h264parse->nalparser,
|
||||||
data, off, size - off, 2, &nalu);
|
data, off, size, 2, &nalu);
|
||||||
if (parseres != GST_H264_PARSER_OK) {
|
if (parseres != GST_H264_PARSER_OK) {
|
||||||
goto avcc_too_small;
|
goto avcc_too_small;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue