[vlc-commits] omxil: Use the right variable instead of a hardcoded number for NAL length field size

Martin Storsjö git at videolan.org
Sat May 12 03:32:11 CEST 2012


vlc | branch: master | Martin Storsjö <martin at martin.st> | Wed May  9 17:33:01 2012 +0300| [70d3e6d16b26154dfcd81f824bda6d299116dbe0] | committer: Jean-Baptiste Kempf

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

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=70d3e6d16b26154dfcd81f824bda6d299116dbe0
---

 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



More information about the vlc-commits mailing list