Changeset 132bf65db16a3496f2b14bb219b90695bdec3b86

Show
Ignore:
Timestamp:
03/02/08 18:37:32 (6 months ago)
Author:
André Weber <WeberAndre@gmx.de>
git-committer:
André Weber <WeberAndre@gmx.de> 1204479452 +0100
git-parent:

[79223aaeafe7ef625f08551700a6ae4d2a26e8b0], [bd9f77136ff0bb6d089880fe9168ce1296fa4d67]

git-author:
André Weber <WeberAndre@gmx.de> 1204479452 +0100
Message:

Merge branch 'master' of git@git.videolan.org:vlc

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • .gitignore

    r0795b83 rbd9f771  
    33*.lo 
    44*.la 
     5*.m4 
     6*.mak 
     7*.moc.cpp 
     8*.o 
     9*.vlt 
    510.deps 
    611.libs 
     12.dirstamp 
    713ABOUT-NLS 
    814aclocal.m4 
     
    1723vlc-config 
    1824vlc-config.in 
     25qvlc 
     26rvlc 
     27svlc 
     28cvlc 
     29qvlc 
     30vlc 
  • extras/contrib/.gitignore

    r23ce4b2 r7c3ed16  
    33bin/* 
    44lib/* 
    5  
     5include/* 
     6man/* 
     7sbin/* 
    68# Ignore fetched contrib 
    79src/* 
  • extras/contrib/src/Makefile

    r478c793 rc13df5d  
    12441244ifdef HAVE_DARWIN_OS 
    12451245    patch -p0 < Patches/goom.patch 
     1246endif 
    12461247    patch -p0 < Patches/goom2k4-0-mmx.patch 
    1247 endif 
    12481248ifdef HAVE_WIN32 
    12491249    (cd $@; dos2unix configure.in) 
  • modules/mux/mpeg/ts.c

    r805699e r85de379  
    893893 
    894894    p_input->p_sys = p_stream = malloc( sizeof( ts_stream_t ) ); 
     895    if( !p_input->p_sys ) 
     896        return VLC_ENOMEM; 
    895897 
    896898    /* Init this new stream */ 
     
    10221024    p_stream->i_langs = 1+p_input->p_fmt->i_extra_languages; 
    10231025    p_stream->lang = malloc(p_stream->i_langs*3); 
     1026    if( !p_stream->lang ) 
     1027    { 
     1028        p_stream->i_langs = 0; 
     1029        free( p_stream ); 
     1030        return VLC_ENOMEM; 
     1031    } 
    10241032    i = 1; 
    10251033    p_stream->lang[0] = 
     
    10591067            char *psz = p_input->p_fmt->p_extra_languages[i-1].psz_language; 
    10601068            const iso639_lang_t *pl = NULL; 
    1061   
     1069 
    10621070            if( strlen( psz ) == 2 ) 
    10631071            { 
     
    10861094    } 
    10871095 
    1088     /* Copy extra data (VOL for MPEG-4 and extra BitMapInfoHeader for VFW */ 
    1089     p_stream->i_decoder_specific_info = p_input->p_fmt->i_extra; 
    1090     if( p_stream->i_decoder_specific_info > 0 ) 
    1091     { 
    1092         p_stream->p_decoder_specific_info = 
    1093             malloc( p_stream->i_decoder_specific_info ); 
    1094         memcpy( p_stream->p_decoder_specific_info, 
    1095                 p_input->p_fmt->p_extra, 
    1096                 p_input->p_fmt->i_extra ); 
    1097     } 
    1098  
    10991096    /* Create decoder specific info for subt */ 
    11001097    if( p_stream->i_codec == VLC_FOURCC( 's', 'u','b', 't' ) ) 
     
    11051102        p_stream->p_decoder_specific_info = p = 
    11061103            malloc( p_stream->i_decoder_specific_info ); 
    1107  
    1108         p[0] = 0x10;    /* textFormat, 0x10 for 3GPP TS 26.245 */ 
    1109         p[1] = 0x00;    /* flags: 1b: associated video info flag 
    1110                                   3b: reserved 
    1111                                   1b: duration flag 
    1112                                   3b: reserved */ 
    1113         p[2] = 52;      /* remaining size */ 
    1114  
    1115         p += 3; 
    1116  
    1117         p[0] = p[1] = p[2] = p[3] = 0; p+=4;    /* display flags */ 
    1118         *p++ = 0;  /* horizontal justification (-1: left, 0 center, 1 right) */ 
    1119         *p++ = 1;  /* vertical   justification (-1: top, 0 center, 1 bottom) */ 
    1120  
    1121         p[0] = p[1] = p[2] = 0x00; p+=3;/* background rgb */ 
    1122         *p++ = 0xff;                    /* background a */ 
    1123  
    1124         p[0] = p[1] = 0; p += 2;        /* text box top */ 
    1125         p[0] = p[1] = 0; p += 2;        /* text box left */ 
    1126         p[0] = p[1] = 0; p += 2;        /* text box bottom */ 
    1127         p[0] = p[1] = 0; p += 2;        /* text box right */ 
    1128  
    1129         p[0] = p[1] = 0; p += 2;        /* start char */ 
    1130         p[0] = p[1] = 0; p += 2;        /* end char */ 
    1131         p[0] = p[1] = 0; p += 2;        /* default font id */ 
    1132  
    1133         *p++ = 0;                       /* font style flags */ 
    1134         *p++ = 12;                      /* font size */ 
    1135  
    1136         p[0] = p[1] = p[2] = 0x00; p+=3;/* foreground rgb */ 
    1137         *p++ = 0x00;                    /* foreground a */ 
    1138  
    1139         p[0] = p[1] = p[2] = 0; p[3] = 22; p += 4; 
    1140         memcpy( p, "ftab", 4 ); p += 4; 
    1141         *p++ = 0; *p++ = 1;             /* entry count */ 
    1142         p[0] = p[1] = 0; p += 2;        /* font id */ 
    1143         *p++ = 9;                       /* font name length */ 
    1144         memcpy( p, "Helvetica", 9 );    /* font name */ 
     1104        if( p ) 
     1105        { 
     1106            p[0] = 0x10;    /* textFormat, 0x10 for 3GPP TS 26.245 */ 
     1107            p[1] = 0x00;    /* flags: 1b: associated video info flag 
     1108                                    3b: reserved 
     1109                                    1b: duration flag 
     1110                                    3b: reserved */ 
     1111            p[2] = 52;      /* remaining size */ 
     1112 
     1113            p += 3; 
     1114 
     1115            p[0] = p[1] = p[2] = p[3] = 0; p+=4;    /* display flags */ 
     1116            *p++ = 0;  /* horizontal justification (-1: left, 0 center, 1 right) */ 
     1117            *p++ = 1;  /* vertical   justification (-1: top, 0 center, 1 bottom) */ 
     1118 
     1119            p[0] = p[1] = p[2] = 0x00; p+=3;/* background rgb */ 
     1120            *p++ = 0xff;                    /* background a */ 
     1121 
     1122            p[0] = p[1] = 0; p += 2;        /* text box top */ 
     1123            p[0] = p[1] = 0; p += 2;        /* text box left */ 
     1124            p[0] = p[1] = 0; p += 2;        /* text box bottom */ 
     1125            p[0] = p[1] = 0; p += 2;        /* text box right */ 
     1126 
     1127            p[0] = p[1] = 0; p += 2;        /* start char */ 
     1128            p[0] = p[1] = 0; p += 2;        /* end char */ 
     1129            p[0] = p[1] = 0; p += 2;        /* default font id */ 
     1130 
     1131            *p++ = 0;                       /* font style flags */ 
     1132            *p++ = 12;                      /* font size */ 
     1133 
     1134            p[0] = p[1] = p[2] = 0x00; p+=3;/* foreground rgb */ 
     1135            *p++ = 0x00;                    /* foreground a */ 
     1136 
     1137            p[0] = p[1] = p[2] = 0; p[3] = 22; p += 4; 
     1138            memcpy( p, "ftab", 4 ); p += 4; 
     1139            *p++ = 0; *p++ = 1;             /* entry count */ 
     1140            p[0] = p[1] = 0; p += 2;        /* font id */ 
     1141            *p++ = 9;                       /* font name length */ 
     1142            memcpy( p, "Helvetica", 9 );    /* font name */ 
     1143        } 
     1144        else p_stream->i_decoder_specific_info = 0; 
     1145    } 
     1146    else 
     1147    { 
     1148        /* Copy extra data (VOL for MPEG-4 and extra BitMapInfoHeader for VFW */ 
     1149        p_stream->i_decoder_specific_info = p_input->p_fmt->i_extra; 
     1150        if( p_stream->i_decoder_specific_info > 0 ) 
     1151        { 
     1152            p_stream->p_decoder_specific_info = 
     1153                malloc( p_stream->i_decoder_specific_info ); 
     1154            if( p_stream->p_decoder_specific_info ) 
     1155            { 
     1156                memcpy( p_stream->p_decoder_specific_info, 
     1157                        p_input->p_fmt->p_extra, 
     1158                        p_input->p_fmt->i_extra ); 
     1159            } 
     1160            else p_stream->i_decoder_specific_info = 0; 
     1161        } 
    11451162    } 
    11461163 
     
    22342251 
    22352252    if( p_sys->dvbpmt == NULL ) 
     2253    { 
    22362254        p_sys->dvbpmt = malloc( p_sys->i_num_pmt * sizeof(dvbpsi_pmt_t) ); 
     2255        if( !p_sys->dvbpmt ) 
     2256        { 
     2257            return; 
     2258        } 
     2259    } 
    22372260#ifdef HAVE_DVBPSI_SDT 
    22382261    if( p_sys->b_sdt ) 
  • src/config/chain.c

    r15e4046 rcc1f013  
    321321                           name, psz_name ); 
    322322            } 
    323             if( !p_conf->b_safe ) 
    324             { 
    325                 int policy = config_GetInt( p_this, "security-policy" ); 
    326                 switch( policy ) 
    327                 { 
    328                     case 0: /* block */ 
    329                         msg_Err( p_this, "option %s is unsafe and is blocked by security policy", psz_name ); 
    330                         return; 
    331                     case 1: /* allow */ 
    332                         break; 
    333                     case 2: /* prompt */ 
    334                     { 
    335                         char description[256]; 
    336                         snprintf(description, sizeof(description), _("playlist item is making use of the following unsafe option '%s', which may be harmful if used in a malicious way, authorize it ?"), psz_name); 
    337                         if( DIALOG_OK_YES != intf_UserYesNo( p_this, _("WARNING: Unsafe Playlist"), description, _("Yes"), _("No"), NULL) ) 
    338                         { 
    339                             msg_Err( p_this, "option %s is unsafe and is blocked by security policy", psz_name ); 
    340                             return; 
    341                         } 
    342                     } 
    343                     default: 
    344                         ; 
    345                 } 
    346             } 
    347323        } 
    348324        /* </Check if the option is deprecated> */ 
  • src/playlist/control.c

    r0db6aa8 r0d15cad  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999-2004 the VideoLAN team 
    5  * $Id: /local/vlc/0.8.6-playlist-vlm/src/playlist/playlist.c 13741 2006-03-21T19:29:39.792444Z zorglub 
     5 * $Id
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
  • src/playlist/playlist_internal.h

    r9c9d1dd r0d15cad  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999-2004 the VideoLAN team 
    5  * $Id: vlc_playlist.h 16505 2006-09-03 21:53:38Z zorglub
     5 * $Id
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
  • src/stream_output/stream_output.h

    r62ffefd r0d15cad  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002-2005 the VideoLAN team 
    5  * $Id: stream_output.h 16916 2006-10-01 16:08:37Z dionoea
     5 * $Id
    66 * 
    77 * Authors: Christophe Massiot <massiot@via.ecp.fr> 
  • test/native/algo.c

    r99fab90 r0d15cad  
    33 ***************************************************************************** 
    44 * Copyright (C) 2006 VideoLAN 
    5  * $Id: i18n.c 16157 2006-07-29 13:32:12Z zorglub
     5 * $Id
    66 * 
    77 * This program is free software; you can redistribute it and/or modify