]> git.sesse.net Git - vlc/commitdiff
omxil: Use the right variable instead of a hardcoded number for NAL length field...
authorMartin Storsjö <martin@martin.st>
Wed, 9 May 2012 14:33:01 +0000 (17:33 +0300)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 12 May 2012 01:32:15 +0000 (03:32 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/omxil/omxil.c

index f7e3c489d2bc2825d0f90dd882aa436242b2618e..f28cd9d997879079d3b7d0663676708620176889 100644 (file)
@@ -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