]> git.sesse.net Git - vlc/blobdiff - include/vlc_block_helper.h
Rewrite base64 encoder
[vlc] / include / vlc_block_helper.h
index f22f7fcf4434184738502a443fa499568505064b..7216d4581eb5ccba5a42c2d0d8af71e73ebb455c 100644 (file)
@@ -1,8 +1,8 @@
 /*****************************************************************************
  * vlc_block_helper.h: Helper functions for data blocks management.
  *****************************************************************************
- * Copyright (C) 2003 VideoLAN
- * $Id: vlc_block_helper.h,v 1.6 2003/12/06 23:25:23 gbazin Exp $
+ * Copyright (C) 2003 the VideoLAN team
+ * $Id$
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *
@@ -460,7 +460,7 @@ static inline int block_FindStartcodeFromOffset(
     }
 
     /* Begin the search.
-     * We first look for an occurence of the 1st startcode byte and
+     * We first look for an occurrence of the 1st startcode byte and
      * if found, we do a more thorough check. */
     i_size = p_block->i_buffer + i_size;
     *pi_offset -= i_size;
@@ -501,6 +501,7 @@ static inline int block_FindStartcodeFromOffset(
         *pi_offset += i_offset;
     }
 
+    *pi_offset -= i_match;
     return VLC_EGENERIC;
 }