~ubuntu-branches/debian/squeeze/vlc/squeeze

« back to all changes in this revision

Viewing changes to modules/demux/avi/libavi.c

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Mutricy
  • Date: 2009-09-20 01:08:41 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20090920010841-vc6vme91a70r5w0t
Tags: upstream-1.0.2
ImportĀ upstreamĀ versionĀ 1.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * libavi.c : LibAVI
3
3
 *****************************************************************************
4
4
 * Copyright (C) 2001 the VideoLAN team
5
 
 * $Id: ad65ecb9decf50529d11d20495654ec5bef12dad $
 
5
 * $Id: ffbb3f9b16a66c295799a31d9d793c1549a9ef40 $
6
6
 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
7
7
 *
8
8
 * This program is free software; you can redistribute it and/or modify
795
795
}
796
796
 
797
797
static void AVI_ChunkDumpDebug_level( vlc_object_t *p_obj,
798
 
                                      avi_chunk_t  *p_chk, int i_level )
 
798
                                      avi_chunk_t  *p_chk, unsigned i_level )
799
799
{
800
 
    char str[1024];
801
 
    int i;
 
800
    unsigned i;
802
801
    avi_chunk_t *p_child;
803
802
 
 
803
    char str[512];
 
804
    if( i_level * 5 + 1 >= sizeof(str) )
 
805
        return;
 
806
 
804
807
    memset( str, ' ', sizeof( str ) );
805
808
    for( i = 1; i < i_level; i++ )
806
809
    {
810
813
        p_chk->common.i_chunk_fourcc == AVIFOURCC_ON2  ||
811
814
        p_chk->common.i_chunk_fourcc == AVIFOURCC_LIST )
812
815
    {
813
 
        sprintf( str + i_level * 5,
 
816
        snprintf( &str[i_level * 5], sizeof(str) - 5*i_level,
814
817
                 "%c %4.4s-%4.4s size:%"PRIu64" pos:%"PRIu64,
815
818
                 i_level ? '+' : '*',
816
819
                 (char*)&p_chk->common.i_chunk_fourcc,
820
823
    }
821
824
    else
822
825
    {
823
 
        sprintf( str + i_level * 5,
 
826
        snprintf( &str[i_level * 5], sizeof(str) - 5*i_level,
824
827
                 "+ %4.4s size:%"PRIu64" pos:%"PRIu64,
825
828
                 (char*)&p_chk->common.i_chunk_fourcc,
826
829
                 p_chk->common.i_chunk_size,