Commit 70d3e6d1 authored by Martin Storsjö's avatar Martin Storsjö Committed by Jean-Baptiste Kempf

omxil: Use the right variable instead of a hardcoded number for NAL length field size

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 29988fbd
...@@ -1340,8 +1340,8 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block ) ...@@ -1340,8 +1340,8 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
ptr[p_sys->i_nal_size_length - 1] = 1; ptr[p_sys->i_nal_size_length - 1] = 1;
if( nal_len > INT_MAX || nal_len > (unsigned int) i_len ) if( nal_len > INT_MAX || nal_len > (unsigned int) i_len )
break; break;
ptr += nal_len + 4; ptr += nal_len + p_sys->i_nal_size_length;
i_len -= nal_len + 4; i_len -= nal_len + p_sys->i_nal_size_length;
} }
} }
#ifdef OMXIL_EXTRA_DEBUG #ifdef OMXIL_EXTRA_DEBUG
......
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