[vlc-devel] [PATCH] omxil: Use the right variable instead of a hardcoded number for NAL length field size
Martin Storsjö
martin at martin.st
Wed May 9 16:33:01 CEST 2012
---
modules/codec/omxil/omxil.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
index f7e3c48..f28cd9d 100644
--- a/modules/codec/omxil/omxil.c
+++ b/modules/codec/omxil/omxil.c
@@ -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;
if( nal_len > INT_MAX || nal_len > (unsigned int) i_len )
break;
- ptr += nal_len + 4;
- i_len -= nal_len + 4;
+ ptr += nal_len + p_sys->i_nal_size_length;
+ i_len -= nal_len + p_sys->i_nal_size_length;
}
}
#ifdef OMXIL_EXTRA_DEBUG
--
1.7.9
More information about the vlc-devel
mailing list