Changeset 132bf65db16a3496f2b14bb219b90695bdec3b86
- Timestamp:
- 03/02/08 18:37:32 (6 months ago)
- git-parent:
[79223aaeafe7ef625f08551700a6ae4d2a26e8b0], [bd9f77136ff0bb6d089880fe9168ce1296fa4d67]
- Files:
-
- .gitignore (modified) (2 diffs)
- extras/contrib/.gitignore (modified) (1 diff)
- extras/contrib/src/Makefile (modified) (1 diff)
- modules/mux/mpeg/ts.c (modified) (6 diffs)
- src/config/chain.c (modified) (1 diff)
- src/playlist/control.c (modified) (1 diff)
- src/playlist/playlist_internal.h (modified) (1 diff)
- src/stream_output/stream_output.h (modified) (1 diff)
- test/native/algo.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
.gitignore
r0795b83 rbd9f771 3 3 *.lo 4 4 *.la 5 *.m4 6 *.mak 7 *.moc.cpp 8 *.o 9 *.vlt 5 10 .deps 6 11 .libs 12 .dirstamp 7 13 ABOUT-NLS 8 14 aclocal.m4 … … 17 23 vlc-config 18 24 vlc-config.in 25 qvlc 26 rvlc 27 svlc 28 cvlc 29 qvlc 30 vlc extras/contrib/.gitignore
r23ce4b2 r7c3ed16 3 3 bin/* 4 4 lib/* 5 5 include/* 6 man/* 7 sbin/* 6 8 # Ignore fetched contrib 7 9 src/* extras/contrib/src/Makefile
r478c793 rc13df5d 1244 1244 ifdef HAVE_DARWIN_OS 1245 1245 patch -p0 < Patches/goom.patch 1246 endif 1246 1247 patch -p0 < Patches/goom2k4-0-mmx.patch 1247 endif1248 1248 ifdef HAVE_WIN32 1249 1249 (cd $@; dos2unix configure.in) modules/mux/mpeg/ts.c
r805699e r85de379 893 893 894 894 p_input->p_sys = p_stream = malloc( sizeof( ts_stream_t ) ); 895 if( !p_input->p_sys ) 896 return VLC_ENOMEM; 895 897 896 898 /* Init this new stream */ … … 1022 1024 p_stream->i_langs = 1+p_input->p_fmt->i_extra_languages; 1023 1025 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 } 1024 1032 i = 1; 1025 1033 p_stream->lang[0] = … … 1059 1067 char *psz = p_input->p_fmt->p_extra_languages[i-1].psz_language; 1060 1068 const iso639_lang_t *pl = NULL; 1061 1069 1062 1070 if( strlen( psz ) == 2 ) 1063 1071 { … … 1086 1094 } 1087 1095 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 1099 1096 /* Create decoder specific info for subt */ 1100 1097 if( p_stream->i_codec == VLC_FOURCC( 's', 'u','b', 't' ) ) … … 1105 1102 p_stream->p_decoder_specific_info = p = 1106 1103 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 } 1145 1162 } 1146 1163 … … 2234 2251 2235 2252 if( p_sys->dvbpmt == NULL ) 2253 { 2236 2254 p_sys->dvbpmt = malloc( p_sys->i_num_pmt * sizeof(dvbpsi_pmt_t) ); 2255 if( !p_sys->dvbpmt ) 2256 { 2257 return; 2258 } 2259 } 2237 2260 #ifdef HAVE_DVBPSI_SDT 2238 2261 if( p_sys->b_sdt ) src/config/chain.c
r15e4046 rcc1f013 321 321 name, psz_name ); 322 322 } 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 }347 323 } 348 324 /* </Check if the option is deprecated> */ src/playlist/control.c
r0db6aa8 r0d15cad 3 3 ***************************************************************************** 4 4 * 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$ 6 6 * 7 7 * Authors: Samuel Hocevar <sam@zoy.org> src/playlist/playlist_internal.h
r9c9d1dd r0d15cad 3 3 ***************************************************************************** 4 4 * Copyright (C) 1999-2004 the VideoLAN team 5 * $Id : vlc_playlist.h 16505 2006-09-03 21:53:38Z zorglub$5 * $Id$ 6 6 * 7 7 * Authors: Samuel Hocevar <sam@zoy.org> src/stream_output/stream_output.h
r62ffefd r0d15cad 3 3 ***************************************************************************** 4 4 * Copyright (C) 2002-2005 the VideoLAN team 5 * $Id : stream_output.h 16916 2006-10-01 16:08:37Z dionoea$5 * $Id$ 6 6 * 7 7 * Authors: Christophe Massiot <massiot@via.ecp.fr> test/native/algo.c
r99fab90 r0d15cad 3 3 ***************************************************************************** 4 4 * Copyright (C) 2006 VideoLAN 5 * $Id : i18n.c 16157 2006-07-29 13:32:12Z zorglub$5 * $Id$ 6 6 * 7 7 * This program is free software; you can redistribute it and/or modify
