Commit 5359dc31 authored by Martin Storsjö's avatar Martin Storsjö Committed by Jean-Baptiste Kempf

h264_nal: Make the p_nal_size parameter optional

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7489d59d
...@@ -37,6 +37,7 @@ static int convert_sps_pps( decoder_t *p_dec, const uint8_t *p_buf, ...@@ -37,6 +37,7 @@ static int convert_sps_pps( decoder_t *p_dec, const uint8_t *p_buf,
/* Read infos in first 6 bytes */ /* Read infos in first 6 bytes */
i_profile = (p_buf[1] << 16) | (p_buf[2] << 8) | p_buf[3]; i_profile = (p_buf[1] << 16) | (p_buf[2] << 8) | p_buf[3];
if (p_nal_size)
*p_nal_size = (p_buf[4] & 0x03) + 1; *p_nal_size = (p_buf[4] & 0x03) + 1;
p_buf += 5; p_buf += 5;
i_data_size -= 5; i_data_size -= 5;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment