mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
Cleanup: fix names of recipe and patch files.
* this fixes the wrong recipe names introduced by myself in #d525fee * adjust patch names to match corresponding recipes * additionally: create 'additional-files' folders as hint to some ports that do not have a proper recipe yet
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
DESCRIPTION="FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec - the leading audio/video codec library."
|
||||
HOMEPAGE="http://www.ffmpeg.org"
|
||||
SRC_URI="http://www.ffmpeg.org/releases/ffmpeg-0.10.2.tar.bz2"
|
||||
CHECKSUM_MD5="de1bd5fc4bbf3ef730a5361ee596fedd"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="media-libs/libogg >= 1.3.0
|
||||
media-libs/speex >= 1.2rc1
|
||||
media-libs/libtheora >= 1.1.0
|
||||
media-libs/libvorbis >= 1.3.2
|
||||
media-libs/libvpx >= 1.0.0"
|
||||
BUILD()
|
||||
{
|
||||
cd ffmpeg-0.10.2
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` --disable-debug --enable-shared \
|
||||
--enable-libvorbis --enable-libspeex --enable-libtheora --enable-libvpx \
|
||||
--enable-gpl --datadir=`finddir B_COMMON_DATA_DIRECTORY`
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd ffmpeg-0.10.2
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2000-2003 Fabrice Bellard
|
||||
2003-2012 the FFmpeg developers"
|
||||
@@ -1,29 +0,0 @@
|
||||
DESCRIPTION="FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec - the leading audio/video codec library."
|
||||
HOMEPAGE="http://www.ffmpeg.org"
|
||||
SRC_URI="http://www.ffmpeg.org/releases/ffmpeg-0.10.tar.bz2"
|
||||
CHECKSUM_MD5="dc665cc599a739e3c5262ccdac13d129"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="media-libs/libogg >= 1.3.0
|
||||
media-libs/speex >= 1.2rc1
|
||||
media-libs/libtheora >= 1.1.0
|
||||
media-libs/libvorbis >= 1.3.2
|
||||
media-libs/libvpx >= 1.0.0"
|
||||
BUILD()
|
||||
{
|
||||
cd ffmpeg-0.10
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` --disable-debug --enable-shared \
|
||||
--enable-libvorbis --enable-libspeex --enable-libtheora --enable-libvpx
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd ffmpeg-0.10
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="GNU LGPL v2.1
|
||||
GNU GPL v2"
|
||||
COPYRIGHT="2000-2003 Fabrice Bellard
|
||||
2003-2012 the FFmpeg developers"
|
||||
@@ -1,268 +0,0 @@
|
||||
diff --git a/cmdutils.c b/cmdutils.c
|
||||
index 386db3d..f918600 100644
|
||||
--- ffmpeg-0.10/cmdutils.c
|
||||
+++ ffmpeg-0.10/cmdutils.c
|
||||
@@ -89,7 +89,7 @@ static void log_callback_report(void *ptr, int level, const char *fmt, va_list v
|
||||
char line[1024];
|
||||
static int print_prefix = 1;
|
||||
|
||||
- va_copy(vl2, vl);
|
||||
+ __va_copy(vl2, vl);
|
||||
av_log_default_callback(ptr, level, fmt, vl);
|
||||
av_log_format_line(ptr, level, fmt, vl2, line, sizeof(line), &print_prefix);
|
||||
va_end(vl2);
|
||||
diff --git a/ffmpeg.c b/ffmpeg.c
|
||||
index 463e1f4..245e8b5 100644
|
||||
--- ffmpeg-0.10/ffmpeg.c
|
||||
+++ ffmpeg-0.10/ffmpeg.c
|
||||
@@ -1247,9 +1247,11 @@ need_realloc:
|
||||
av_fifo_size(ost->fifo) / (enc->channels * osize); // FIXME wrong
|
||||
|
||||
if (ost->audio_resample) {
|
||||
+ uint8_t *buftmp2[] = { buftmp };
|
||||
+ const uint8_t *buf2[] = { buf };
|
||||
buftmp = audio_buf;
|
||||
- size_out = swr_convert(ost->swr, ( uint8_t*[]){buftmp}, audio_buf_size / (enc->channels * osize),
|
||||
- (const uint8_t*[]){buf }, size / (dec->channels * isize));
|
||||
+ size_out = swr_convert(ost->swr, buftmp2, audio_buf_size / (enc->channels * osize),
|
||||
+ buf2, size / (dec->channels * isize));
|
||||
size_out = size_out * enc->channels * osize;
|
||||
} else {
|
||||
buftmp = buf;
|
||||
diff --git a/ffprobe.c b/ffprobe.c
|
||||
index ca6133e..43f9d39 100644
|
||||
--- ffmpeg-0.10/ffprobe.c
|
||||
+++ ffmpeg-0.10/ffprobe.c
|
||||
@@ -293,7 +293,9 @@ static void writer_print_time(WriterContext *wctx, const char *key,
|
||||
writer_print_string(wctx, key, "N/A", 1);
|
||||
} else {
|
||||
double d = ts * av_q2d(*time_base);
|
||||
- value_string(buf, sizeof(buf), (struct unit_value){.val.d=d, .unit=unit_second_str});
|
||||
+ struct unit_value value2 = {.unit=unit_second_str};
|
||||
+ value2.val.d = d;
|
||||
+ value_string(buf, sizeof(buf), value2);
|
||||
writer_print_string(wctx, key, buf, 0);
|
||||
}
|
||||
}
|
||||
@@ -1249,8 +1251,8 @@ static void writer_register_all(void)
|
||||
#define print_str_opt(k, v) writer_print_string(w, k, v, 1)
|
||||
#define print_time(k, v, tb) writer_print_time(w, k, v, tb)
|
||||
#define print_ts(k, v) writer_print_ts(w, k, v)
|
||||
-#define print_val(k, v, u) writer_print_string(w, k, \
|
||||
- value_string(val_str, sizeof(val_str), (struct unit_value){.val.i = v, .unit=u}), 0)
|
||||
+#define print_val(k, v, u) value2.val.i = v; value2.unit=u; writer_print_string(w, k, \
|
||||
+ value_string(val_str, sizeof(val_str), value2), 0);
|
||||
#define print_section_header(s) writer_print_section_header(w, s)
|
||||
#define print_section_footer(s) writer_print_section_footer(w, s)
|
||||
#define show_tags(metadata) writer_show_tags(w, metadata)
|
||||
@@ -1261,6 +1263,7 @@ static void show_packet(WriterContext *w, AVFormatContext *fmt_ctx, AVPacket *pk
|
||||
AVStream *st = fmt_ctx->streams[pkt->stream_index];
|
||||
struct print_buf pbuf = {.s = NULL};
|
||||
const char *s;
|
||||
+ struct unit_value value2;
|
||||
|
||||
print_section_header("packet");
|
||||
s = av_get_media_type_string(st->codec->codec_type);
|
||||
@@ -1404,6 +1407,7 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
|
||||
const char *s;
|
||||
AVRational display_aspect_ratio;
|
||||
struct print_buf pbuf = {.s = NULL};
|
||||
+ struct unit_value value2;
|
||||
|
||||
print_section_header("stream");
|
||||
|
||||
@@ -1516,6 +1520,7 @@ static void show_format(WriterContext *w, AVFormatContext *fmt_ctx)
|
||||
{
|
||||
char val_str[128];
|
||||
int64_t size = fmt_ctx->pb ? avio_size(fmt_ctx->pb) : -1;
|
||||
+ struct unit_value value2;
|
||||
|
||||
print_section_header("format");
|
||||
print_str("filename", fmt_ctx->filename);
|
||||
@@ -1524,9 +1529,9 @@ static void show_format(WriterContext *w, AVFormatContext *fmt_ctx)
|
||||
print_str("format_long_name", fmt_ctx->iformat->long_name);
|
||||
print_time("start_time", fmt_ctx->start_time, &AV_TIME_BASE_Q);
|
||||
print_time("duration", fmt_ctx->duration, &AV_TIME_BASE_Q);
|
||||
- if (size >= 0) print_val ("size", size, unit_byte_str);
|
||||
+ if (size >= 0) { print_val ("size", size, unit_byte_str); }
|
||||
else print_str_opt("size", "N/A");
|
||||
- if (fmt_ctx->bit_rate > 0) print_val ("bit_rate", fmt_ctx->bit_rate, unit_bit_per_second_str);
|
||||
+ if (fmt_ctx->bit_rate > 0) { print_val ("bit_rate", fmt_ctx->bit_rate, unit_bit_per_second_str); }
|
||||
else print_str_opt("bit_rate", "N/A");
|
||||
show_tags(fmt_ctx->metadata);
|
||||
print_section_footer("format");
|
||||
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
|
||||
index 55f0286..35d5f1a 100644
|
||||
--- ffmpeg-0.10/libavcodec/aacenc.c
|
||||
+++ ffmpeg-0.10/libavcodec/aacenc.c
|
||||
@@ -223,8 +223,9 @@ WINDOW_FUNC(eight_short)
|
||||
const float *pwindow = sce->ics.use_kb_window[1] ? ff_aac_kbd_short_128 : ff_sine_128;
|
||||
const float *in = audio + 448;
|
||||
float *out = sce->ret;
|
||||
+ int w;
|
||||
|
||||
- for (int w = 0; w < 8; w++) {
|
||||
+ for (w = 0; w < 8; w++) {
|
||||
dsp->vector_fmul (out, in, w ? pwindow : swindow, 128);
|
||||
out += 128;
|
||||
in += 128;
|
||||
@@ -686,11 +687,12 @@ static av_cold int dsp_init(AVCodecContext *avctx, AACEncContext *s)
|
||||
|
||||
static av_cold int alloc_buffers(AVCodecContext *avctx, AACEncContext *s)
|
||||
{
|
||||
+ int ch;
|
||||
FF_ALLOCZ_OR_GOTO(avctx, s->buffer.samples, 3 * 1024 * s->channels * sizeof(s->buffer.samples[0]), alloc_fail);
|
||||
FF_ALLOCZ_OR_GOTO(avctx, s->cpe, sizeof(ChannelElement) * s->chan_map[0], alloc_fail);
|
||||
FF_ALLOCZ_OR_GOTO(avctx, avctx->extradata, 5 + FF_INPUT_BUFFER_PADDING_SIZE, alloc_fail);
|
||||
|
||||
- for(int ch = 0; ch < s->channels; ch++)
|
||||
+ for(ch = 0; ch < s->channels; ch++)
|
||||
s->planar_samples[ch] = s->buffer.samples + 3 * 1024 * ch;
|
||||
|
||||
return 0;
|
||||
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c
|
||||
index e73fbfe..3cde56c 100644
|
||||
--- ffmpeg-0.10/libavutil/pixdesc.c
|
||||
+++ ffmpeg-0.10/libavutil/pixdesc.c
|
||||
@@ -1096,12 +1096,6 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {
|
||||
.log2_chroma_h = 1,
|
||||
.flags = PIX_FMT_HWACCEL,
|
||||
},
|
||||
- [PIX_FMT_VDA_VLD] = {
|
||||
- .name = "vda_vld",
|
||||
- .log2_chroma_w = 1,
|
||||
- .log2_chroma_h = 1,
|
||||
- .flags = PIX_FMT_HWACCEL,
|
||||
- },
|
||||
[PIX_FMT_GRAY8A] = {
|
||||
.name = "gray8a",
|
||||
.nb_components = 2,
|
||||
@@ -1110,16 +1104,6 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {
|
||||
{ 0, 1, 2, 0, 7 }, /* A */
|
||||
},
|
||||
},
|
||||
- [PIX_FMT_GBR24P] = {
|
||||
- .name = "gbr24p",
|
||||
- .nb_components= 3,
|
||||
- .comp = {
|
||||
- { 1, 0, 1, 0, 7 }, /* B */
|
||||
- { 0, 0, 1, 0, 7 }, /* G */
|
||||
- { 2, 0, 1, 0, 7 }, /* R */
|
||||
- },
|
||||
- .flags = PIX_FMT_PLANAR | PIX_FMT_RGB,
|
||||
- },
|
||||
[PIX_FMT_GBRP] = {
|
||||
.name = "gbrp",
|
||||
.nb_components = 3,
|
||||
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
|
||||
index e1ba799..3820056 100644
|
||||
--- ffmpeg-0.10/libswscale/swscale_unscaled.c
|
||||
+++ ffmpeg-0.10/libswscale/swscale_unscaled.c
|
||||
@@ -370,30 +370,38 @@ static int planarRgbToRgbWrapper(SwsContext *c, const uint8_t* src[], int srcStr
|
||||
}
|
||||
|
||||
switch (c->dstFormat) {
|
||||
- case PIX_FMT_BGR24:
|
||||
- gbr24ptopacked24((const uint8_t* []) {src[1], src[0], src[2]}, (int []) {srcStride[1], srcStride[0], srcStride[2]},
|
||||
+ case PIX_FMT_BGR24: {
|
||||
+ const uint8_t* src2[] = {src[1], src[0], src[2]};
|
||||
+ int srcStride2[] = {srcStride[1], srcStride[0], srcStride[2]};
|
||||
+ gbr24ptopacked24(src2, srcStride2,
|
||||
dst[0] + srcSliceY * dstStride[0], dstStride[0], srcSliceH, c->srcW);
|
||||
break;
|
||||
-
|
||||
- case PIX_FMT_RGB24:
|
||||
- gbr24ptopacked24((const uint8_t* []) {src[2], src[0], src[1]}, (int []) {srcStride[2], srcStride[0], srcStride[1]},
|
||||
+ }
|
||||
+ case PIX_FMT_RGB24: {
|
||||
+ const uint8_t* src2[] = {src[2], src[0], src[1]};
|
||||
+ int srcStride2[] = {srcStride[2], srcStride[0], srcStride[1]};
|
||||
+ gbr24ptopacked24(src2, srcStride2,
|
||||
dst[0] + srcSliceY * dstStride[0], dstStride[0], srcSliceH, c->srcW);
|
||||
break;
|
||||
-
|
||||
+ }
|
||||
case PIX_FMT_ARGB:
|
||||
alpha_first = 1;
|
||||
- case PIX_FMT_RGBA:
|
||||
- gbr24ptopacked32((const uint8_t* []) {src[2], src[0], src[1]}, (int []) {srcStride[2], srcStride[0], srcStride[1]},
|
||||
+ case PIX_FMT_RGBA: {
|
||||
+ const uint8_t* src2[] = {src[2], src[0], src[1]};
|
||||
+ int srcStride2[] = {srcStride[2], srcStride[0], srcStride[1]};
|
||||
+ gbr24ptopacked32(src2, srcStride2,
|
||||
dst[0] + srcSliceY * dstStride[0], dstStride[0], srcSliceH, alpha_first, c->srcW);
|
||||
break;
|
||||
-
|
||||
+ }
|
||||
case PIX_FMT_ABGR:
|
||||
alpha_first = 1;
|
||||
- case PIX_FMT_BGRA:
|
||||
- gbr24ptopacked32((const uint8_t* []) {src[1], src[0], src[2]}, (int []) {srcStride[1], srcStride[0], srcStride[2]},
|
||||
+ case PIX_FMT_BGRA: {
|
||||
+ const uint8_t* src2[] = {src[1], src[0], src[2]};
|
||||
+ int srcStride2[] = {srcStride[1], srcStride[0], srcStride[2]};
|
||||
+ gbr24ptopacked32(src2, srcStride2,
|
||||
dst[0] + srcSliceY * dstStride[0], dstStride[0], srcSliceH, alpha_first, c->srcW);
|
||||
break;
|
||||
-
|
||||
+ }
|
||||
default:
|
||||
av_log(c, AV_LOG_ERROR, "unsupported planar RGB conversion %s -> %s\n",
|
||||
av_get_pix_fmt_name(c->srcFormat), av_get_pix_fmt_name(c->dstFormat));
|
||||
diff --git a/configure b/configure
|
||||
--- ffmpeg-0.10/configure 2012-01-26 22:15:59.047710208 +0000
|
||||
+++ ffmpeg-0.10-haiku/configure 2012-03-28 22:30:34.330563584 +0000
|
||||
@@ -1359,7 +1359,6 @@
|
||||
|
||||
aligned_stack_if_any="ppc x86"
|
||||
fast_64bit_if_any="alpha ia64 mips64 parisc64 ppc64 sparc64 x86_64"
|
||||
-fast_clz_if_any="alpha armv5te avr32 mips ppc x86"
|
||||
fast_unaligned_if_any="armv6 ppc x86"
|
||||
|
||||
inline_asm_deps="!tms470"
|
||||
@@ -1866,7 +1865,7 @@
|
||||
CC_O='-o $@'
|
||||
CXX_O='-o $@'
|
||||
|
||||
-host_cflags='-D_ISOC99_SOURCE -O3 -g'
|
||||
+host_cflags='-D_ISOC99_SOURCE -O2 -g'
|
||||
host_libs='-lm'
|
||||
|
||||
target_path='$(CURDIR)'
|
||||
@@ -1948,6 +1947,7 @@
|
||||
done
|
||||
|
||||
enable $ARCH_EXT_LIST $ALL_TESTS
|
||||
+disable sse
|
||||
|
||||
die_unknown(){
|
||||
echo "Unknown option \"$1\"."
|
||||
@@ -2144,7 +2144,7 @@
|
||||
CC_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@'
|
||||
AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@'
|
||||
fi
|
||||
- speed_cflags='-O3'
|
||||
+ speed_cflags='-O2'
|
||||
size_cflags='-Os'
|
||||
elif $cc --version 2>/dev/null | grep -q Intel; then
|
||||
cc_type=icc
|
||||
@@ -2831,10 +2831,6 @@
|
||||
struct { int x; } __attribute__((packed)) x;
|
||||
EOF
|
||||
|
||||
-check_cc <<EOF && enable attribute_may_alias
|
||||
-union { int x; } __attribute__((may_alias)) x;
|
||||
-EOF
|
||||
-
|
||||
check_cc <<EOF || die "endian test failed"
|
||||
unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
|
||||
EOF
|
||||
@@ -3108,8 +3104,6 @@
|
||||
enabled vaapi && require vaapi va/va.h vaInitialize -lva
|
||||
|
||||
check_mathfunc cbrtf
|
||||
-check_mathfunc exp2
|
||||
-check_mathfunc exp2f
|
||||
check_mathfunc llrint
|
||||
check_mathfunc llrintf
|
||||
check_mathfunc log2
|
||||
@@ -105,7 +105,7 @@ INSTALL()
|
||||
done
|
||||
strip --strip-debug boot/apps/Gnash/haiku-gnash || true
|
||||
|
||||
xres -o boot/apps/Gnash/haiku-gnash -a VICN:101:BEOS:ICON $ROOTDIR/gnash.hvif
|
||||
xres -o boot/apps/Gnash/haiku-gnash -a VICN:101:BEOS:ICON $ROOTDIR/additional-files/gnash.hvif
|
||||
|
||||
popd
|
||||
|
||||
|
||||
@@ -1,529 +0,0 @@
|
||||
diff -ur vlc-0.8.6i-original/configure.ac vlc-0.8.6i/configure.ac
|
||||
--- vlc-0.8.6i-original/configure.ac 2008-07-08 21:59:22.000000000 +0100
|
||||
+++ vlc-0.8.6i/configure.ac 2009-11-07 23:47:24.000000000 +0000
|
||||
@@ -270,6 +270,12 @@
|
||||
VLC_ADD_LDFLAGS([beos],[-lzeta])
|
||||
fi
|
||||
;;
|
||||
+ haiku)
|
||||
+ SYS=beos
|
||||
+ VLC_ADD_CXXFLAGS([beos],[])
|
||||
+ VLC_ADD_LDFLAGS([vlc logger],[-lbe])
|
||||
+ VLC_ADD_LDFLAGS([beos],[-lbe -lmedia -ltranslation -ltracker -lgame])
|
||||
+ ;;
|
||||
*)
|
||||
SYS="${target_os}"
|
||||
;;
|
||||
diff -ur vlc-0.8.6i-original/include/vlc_common.h vlc-0.8.6i/include/vlc_common.h
|
||||
--- vlc-0.8.6i-original/include/vlc_common.h 2008-07-08 21:59:23.000000000 +0100
|
||||
+++ vlc-0.8.6i/include/vlc_common.h 2009-11-08 00:28:56.000000000 +0000
|
||||
@@ -898,7 +898,7 @@
|
||||
# define vlc_strtoll NULL
|
||||
#endif
|
||||
|
||||
-#if defined(SYS_BEOS) \
|
||||
+#if defined(SYS_BEOS) && !(defined(__HAIKU__))\
|
||||
|| (defined (__FreeBSD__) && (__FreeBSD__ < 5))
|
||||
typedef struct {
|
||||
long long quot; /* Quotient. */
|
||||
diff -ur vlc-0.8.6i-original/include/vlc_threads.h vlc-0.8.6i/include/vlc_threads.h
|
||||
--- vlc-0.8.6i-original/include/vlc_threads.h 2008-07-08 21:59:23.000000000 +0100
|
||||
+++ vlc-0.8.6i/include/vlc_threads.h 2009-11-07 23:53:51.000000000 +0000
|
||||
@@ -45,7 +45,7 @@
|
||||
#elif defined( HAVE_KERNEL_SCHEDULER_H ) /* BeOS */
|
||||
# include <kernel/OS.h>
|
||||
# include <kernel/scheduler.h>
|
||||
-# include <byteorder.h>
|
||||
+# include <ByteOrder.h>
|
||||
|
||||
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H ) /* pthreads (like Linux & BSD) */
|
||||
# include <pthread.h>
|
||||
diff -ur vlc-0.8.6i-original/modules/codec/cinepak.c vlc-0.8.6i/modules/codec/cinepak.c
|
||||
--- vlc-0.8.6i-original/modules/codec/cinepak.c 2008-07-08 21:59:23.000000000 +0100
|
||||
+++ vlc-0.8.6i/modules/codec/cinepak.c 2009-11-08 00:57:55.000000000 +0000
|
||||
@@ -279,7 +279,7 @@
|
||||
int i_strip, int i_x, int i_y,
|
||||
int i_x2, int i_y2, uint8_t *p_data )
|
||||
{
|
||||
- uint8_t i_index[4];
|
||||
+ uint8_t i_index[4], *p_dst_y, *p_dst_u, *p_dst_v;
|
||||
int i,j;
|
||||
|
||||
size_t y_max = p_context->i_stride[0] * ( i_y + 5 ) + i_x + 5;
|
||||
@@ -292,7 +292,7 @@
|
||||
if( y_max >= y_siz || u_max >= u_siz || v_max >= v_siz )
|
||||
return;
|
||||
|
||||
- uint8_t *p_dst_y, *p_dst_u, *p_dst_v;
|
||||
+
|
||||
#define PIX_SET_Y( x, y, v ) \
|
||||
p_dst_y[(x) + (y)* p_context->i_stride[0]] = (v);
|
||||
|
||||
@@ -336,7 +336,7 @@
|
||||
int i_strip, int i_x, int i_y,
|
||||
int i_x2, int i_y2, uint8_t *p_data )
|
||||
{
|
||||
- uint8_t i_index;
|
||||
+ uint8_t i_index, *p_dst_y, *p_dst_u, *p_dst_v;
|
||||
int i,j;
|
||||
|
||||
size_t y_max = p_context->i_stride[0] * ( i_y + 5 ) + i_x + 5;
|
||||
@@ -349,7 +349,6 @@
|
||||
if( y_max >= y_siz || u_max >= u_siz || v_max >= v_siz )
|
||||
return;
|
||||
|
||||
- uint8_t *p_dst_y, *p_dst_u, *p_dst_v;
|
||||
#define PIX_SET_Y( x, y, v ) \
|
||||
p_dst_y[(x) + (y)* p_context->i_stride[0]] = (v);
|
||||
|
||||
diff -ur vlc-0.8.6i-original/modules/codec/telx.c vlc-0.8.6i/modules/codec/telx.c
|
||||
--- vlc-0.8.6i-original/modules/codec/telx.c 2008-07-08 21:59:23.000000000 +0100
|
||||
+++ vlc-0.8.6i/modules/codec/telx.c 2009-11-08 00:59:26.000000000 +0000
|
||||
@@ -450,7 +450,7 @@
|
||||
vlc_bool_t b_update = VLC_FALSE;
|
||||
char psz_text[512], *pt = psz_text;
|
||||
char psz_line[256];
|
||||
- int i, total;
|
||||
+ int i, total, mpag, row, magazine;
|
||||
|
||||
if( pp_block == NULL || *pp_block == NULL ) return NULL;
|
||||
p_block = *pp_block;
|
||||
@@ -473,8 +473,7 @@
|
||||
/* continue; */
|
||||
/* } */
|
||||
|
||||
- int mpag = (hamming_8_4( packet[4] ) << 4) | hamming_8_4( packet[5] );
|
||||
- int row, magazine;
|
||||
+ mpag = (hamming_8_4( packet[4] ) << 4) | hamming_8_4( packet[5] );
|
||||
if ( mpag < 0 )
|
||||
{
|
||||
/* decode error */
|
||||
diff -ur vlc-0.8.6i-original/modules/demux/a52.c vlc-0.8.6i/modules/demux/a52.c
|
||||
--- vlc-0.8.6i-original/modules/demux/a52.c 2008-07-08 21:59:23.000000000 +0100
|
||||
+++ vlc-0.8.6i/modules/demux/a52.c 2009-11-08 01:00:41.000000000 +0000
|
||||
@@ -80,7 +80,7 @@
|
||||
demux_t *p_demux = (demux_t*)p_this;
|
||||
demux_sys_t *p_sys;
|
||||
byte_t *p_peek;
|
||||
- int i_peek = 0;
|
||||
+ int i_peek = 0, i_size;
|
||||
vlc_bool_t b_big_endian = 0; /* Arbitrary initialisation */
|
||||
|
||||
/* Check if we are dealing with a WAV file */
|
||||
@@ -104,7 +104,7 @@
|
||||
|
||||
/* Some A52 wav files don't begin with a sync code so we do a more
|
||||
* extensive search */
|
||||
- int i_size = stream_Peek( p_demux->s, &p_peek, i_peek + A52_PACKET_SIZE * 2);
|
||||
+ i_size = stream_Peek( p_demux->s, &p_peek, i_peek + A52_PACKET_SIZE * 2);
|
||||
i_size -= (PCM_FRAME_SIZE + A52_MAX_HEADER_SIZE);
|
||||
|
||||
while( i_peek < i_size )
|
||||
diff -ur vlc-0.8.6i-original/modules/demux/dts.c vlc-0.8.6i/modules/demux/dts.c
|
||||
--- vlc-0.8.6i-original/modules/demux/dts.c 2008-07-08 21:59:23.000000000 +0100
|
||||
+++ vlc-0.8.6i/modules/demux/dts.c 2009-11-08 01:01:49.000000000 +0000
|
||||
@@ -74,7 +74,8 @@
|
||||
demux_t *p_demux = (demux_t*)p_this;
|
||||
demux_sys_t *p_sys;
|
||||
byte_t * p_peek;
|
||||
- int i_peek = 0;
|
||||
+ int i_peek = 0, i_size;
|
||||
+ uint32_t i_len;
|
||||
|
||||
/* Check if we are dealing with a WAV file */
|
||||
if( stream_Peek( p_demux->s, &p_peek, 20 ) == 20 &&
|
||||
@@ -94,7 +95,7 @@
|
||||
}
|
||||
|
||||
/* Sanity check the wave format header */
|
||||
- uint32_t i_len = GetDWLE( p_peek + i_peek - 4 );
|
||||
+ i_len = GetDWLE( p_peek + i_peek - 4 );
|
||||
if( i_len > DTS_PROBE_SIZE )
|
||||
return VLC_EGENERIC;
|
||||
|
||||
@@ -124,7 +125,7 @@
|
||||
|
||||
/* Some DTS wav files don't begin with a sync code so we do a more
|
||||
* extensive search */
|
||||
- int i_size = stream_Peek( p_demux->s, &p_peek, DTS_PROBE_SIZE );
|
||||
+ i_size = stream_Peek( p_demux->s, &p_peek, DTS_PROBE_SIZE );
|
||||
i_size -= DTS_MAX_HEADER_SIZE;
|
||||
|
||||
while( i_peek < i_size )
|
||||
diff -ur vlc-0.8.6i-original/modules/gui/beos/InterfaceWindow.cpp vlc-0.8.6i/modules/gui/beos/InterfaceWindow.cpp
|
||||
--- vlc-0.8.6i-original/modules/gui/beos/InterfaceWindow.cpp 2008-07-08 21:59:23.000000000 +0100
|
||||
+++ vlc-0.8.6i/modules/gui/beos/InterfaceWindow.cpp 2009-11-08 01:03:41.000000000 +0000
|
||||
@@ -33,7 +33,7 @@
|
||||
#include <SupportKit.h>
|
||||
#include <malloc.h>
|
||||
#include <scsi.h>
|
||||
-#include <scsiprobe_driver.h>
|
||||
+//#include <scsiprobe_driver.h>
|
||||
#include <fs_info.h>
|
||||
#include <string.h>
|
||||
|
||||
diff -ur vlc-0.8.6i-original/modules/misc/network/ipv6.c vlc-0.8.6i/modules/misc/network/ipv6.c
|
||||
--- vlc-0.8.6i-original/modules/misc/network/ipv6.c 2008-07-08 21:59:24.000000000 +0100
|
||||
+++ vlc-0.8.6i/modules/misc/network/ipv6.c 2009-11-08 01:12:23.000000000 +0000
|
||||
@@ -239,6 +239,7 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
+#ifndef __HAIKU__
|
||||
/* Join the multicast group if the socket is a multicast address */
|
||||
if( IN6_IS_ADDR_MULTICAST(&loc.sin6_addr) )
|
||||
{
|
||||
@@ -384,4 +385,5 @@
|
||||
p_socket->i_mtu = val.i_int;
|
||||
|
||||
return 0;
|
||||
+ #endif
|
||||
}
|
||||
diff -ur vlc-0.8.6i-original/modules/mux/mpeg/ts.c vlc-0.8.6i/modules/mux/mpeg/ts.c
|
||||
--- vlc-0.8.6i-original/modules/mux/mpeg/ts.c 2008-07-08 21:59:24.000000000 +0100
|
||||
+++ vlc-0.8.6i/modules/mux/mpeg/ts.c 2009-11-08 01:15:10.000000000 +0000
|
||||
@@ -1719,27 +1719,30 @@
|
||||
static block_t *Add_ADTS( block_t *p_data, es_format_t *p_fmt )
|
||||
{
|
||||
uint8_t *p_extra = p_fmt->p_extra;
|
||||
+ int i_index, i_profile, i_channels, i_fullness;
|
||||
+ uint8_t *p_buffer;
|
||||
+ block_t *p_bak_block, *p_new_block;
|
||||
|
||||
if( !p_data || p_fmt->i_extra < 2 || !p_extra )
|
||||
return p_data; /* no data to construct the headers */
|
||||
|
||||
- int i_index = ( (p_extra[0] << 1) | (p_extra[1] >> 7) ) & 0x0f;
|
||||
- int i_profile = (p_extra[0] >> 3) - 1; /* i_profile < 4 */
|
||||
+ i_index = ( (p_extra[0] << 1) | (p_extra[1] >> 7) ) & 0x0f;
|
||||
+ i_profile = (p_extra[0] >> 3) - 1; /* i_profile < 4 */
|
||||
|
||||
if( i_index == 0x0f && p_fmt->i_extra < 5 )
|
||||
return p_data; /* not enough data */
|
||||
|
||||
- int i_channels = (p_extra[i_index == 0x0f ? 4 : 1] >> 3) & 0x0f;
|
||||
+ i_channels = (p_extra[i_index == 0x0f ? 4 : 1] >> 3) & 0x0f;
|
||||
|
||||
#define ADTS_HEADER_SIZE 7 /* CRC needs 2 more bytes */
|
||||
|
||||
|
||||
/* keep a copy in case block_Realloc() fails */
|
||||
- block_t *p_bak_block = block_Duplicate( p_data );
|
||||
+ p_bak_block = block_Duplicate( p_data );
|
||||
if( !p_bak_block ) /* OOM, block_Realloc() is likely to lose our block */
|
||||
return p_data; /* the frame isn't correct but that's the best we have */
|
||||
|
||||
- block_t *p_new_block = block_Realloc( p_data, ADTS_HEADER_SIZE,
|
||||
+ p_new_block = block_Realloc( p_data, ADTS_HEADER_SIZE,
|
||||
p_data->i_buffer );
|
||||
if( !p_new_block )
|
||||
return p_bak_block; /* OOM, send the (incorrect) original frame */
|
||||
@@ -1747,7 +1750,7 @@
|
||||
block_Release( p_bak_block ); /* we don't need the copy anymore */
|
||||
|
||||
|
||||
- uint8_t *p_buffer = p_new_block->p_buffer;
|
||||
+ p_buffer = p_new_block->p_buffer;
|
||||
|
||||
/* fixed header */
|
||||
p_buffer[0] = 0xff;
|
||||
@@ -1757,7 +1760,7 @@
|
||||
|
||||
/* variable header (starts at last 2 bits of 4th byte) */
|
||||
|
||||
- int i_fullness = 0x7ff; /* 0x7ff means VBR */
|
||||
+ i_fullness = 0x7ff; /* 0x7ff means VBR */
|
||||
/* XXX: We should check if it's CBR or VBR, but no known implementation
|
||||
* do that, and it's a pain to calculate this field */
|
||||
|
||||
diff -ur vlc-0.8.6i-original/modules/packetizer/h264.c vlc-0.8.6i/modules/packetizer/h264.c
|
||||
--- vlc-0.8.6i-original/modules/packetizer/h264.c 2008-07-08 21:59:24.000000000 +0100
|
||||
+++ vlc-0.8.6i/modules/packetizer/h264.c 2009-11-08 01:21:24.000000000 +0000
|
||||
@@ -219,13 +219,14 @@
|
||||
i_sps = (*p++)&0x1f;
|
||||
for( i = 0; i < i_sps; i++ )
|
||||
{
|
||||
+ block_t *p_sps;
|
||||
uint16_t i_length = GetWBE( p ); p += 2;
|
||||
if( i_length >
|
||||
(uint8_t*)p_dec->fmt_in.p_extra + p_dec->fmt_in.i_extra - p )
|
||||
{
|
||||
return VLC_EGENERIC;
|
||||
}
|
||||
- block_t *p_sps = nal_get_annexeb( p_dec, p, i_length );
|
||||
+ p_sps = nal_get_annexeb( p_dec, p, i_length );
|
||||
if( !p_sps )
|
||||
return VLC_EGENERIC;
|
||||
p_sys->p_sps = block_Duplicate( p_sps );
|
||||
@@ -237,13 +238,14 @@
|
||||
i_pps = *p++;
|
||||
for( i = 0; i < i_pps; i++ )
|
||||
{
|
||||
+ block_t *p_pps;
|
||||
uint16_t i_length = GetWBE( p ); p += 2;
|
||||
if( i_length >
|
||||
(uint8_t*)p_dec->fmt_in.p_extra + p_dec->fmt_in.i_extra - p )
|
||||
{
|
||||
return VLC_EGENERIC;
|
||||
}
|
||||
- block_t *p_pps = nal_get_annexeb( p_dec, p, i_length );
|
||||
+ p_pps = nal_get_annexeb( p_dec, p, i_length );
|
||||
if( !p_pps )
|
||||
return VLC_EGENERIC;
|
||||
p_sys->p_pps = block_Duplicate( p_pps );
|
||||
@@ -446,7 +448,7 @@
|
||||
|
||||
for( p = p_block->p_buffer; p < &p_block->p_buffer[p_block->i_buffer]; )
|
||||
{
|
||||
- block_t *p_pic;
|
||||
+ block_t *p_pic, *p_part;
|
||||
int i_size = 0;
|
||||
int i;
|
||||
|
||||
@@ -462,7 +464,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
- block_t *p_part = nal_get_annexeb( p_dec, p, i_size );
|
||||
+ p_part = nal_get_annexeb( p_dec, p, i_size );
|
||||
if( !p_part )
|
||||
break;
|
||||
p_part->i_dts = p_block->i_dts;
|
||||
diff -ur vlc-0.8.6i-original/modules/packetizer/mpeg4audio.c vlc-0.8.6i/modules/packetizer/mpeg4audio.c
|
||||
--- vlc-0.8.6i-original/modules/packetizer/mpeg4audio.c 2008-07-08 21:59:24.000000000 +0100
|
||||
+++ vlc-0.8.6i/modules/packetizer/mpeg4audio.c 2009-11-08 01:18:22.000000000 +0000
|
||||
@@ -332,6 +332,7 @@
|
||||
{
|
||||
int i_profile, i_sample_rate_idx, i_frame_size;
|
||||
vlc_bool_t b_crc;
|
||||
+ unsigned short i_raw_blocks_in_frame;
|
||||
|
||||
/* Fixed header between frames */
|
||||
//int i_id = ( (p_buf[1] >> 3) & 0x01) ? 2 : 4; /* MPEG-2 or 4 */
|
||||
@@ -350,7 +351,7 @@
|
||||
i_frame_size = ((p_buf[3] & 0x03) << 11) | (p_buf[4] << 3) |
|
||||
((p_buf[5] >> 5) /*& 0x7*/);
|
||||
//uint16_t buffer_fullness = ((p_buf[5] & 0x1f) << 6) | (p_buf[6] >> 2);
|
||||
- unsigned short i_raw_blocks_in_frame = p_buf[6] & 0x03;
|
||||
+ i_raw_blocks_in_frame = p_buf[6] & 0x03;
|
||||
|
||||
if( !*pi_sample_rate || !*pi_channels || !i_frame_size )
|
||||
{
|
||||
@@ -436,15 +437,16 @@
|
||||
{
|
||||
/* TODO compute channels count ? */
|
||||
int i_tag = bs_read( s, 4 );
|
||||
- if( i_tag != 0x05 )
|
||||
- return -1;
|
||||
- bs_skip( s, 2 + 4 ); // object type + sampling index
|
||||
int i_num_front = bs_read( s, 4 );
|
||||
int i_num_side = bs_read( s, 4 );
|
||||
int i_num_back = bs_read( s, 4 );
|
||||
int i_num_lfe = bs_read( s, 2 );
|
||||
int i_num_assoc_data = bs_read( s, 3 );
|
||||
int i_num_valid_cc = bs_read( s, 4 );
|
||||
+ int i_comment;
|
||||
+ if( i_tag != 0x05 )
|
||||
+ return -1;
|
||||
+ bs_skip( s, 2 + 4 ); // object type + sampling index
|
||||
|
||||
if( bs_read1(s) )
|
||||
bs_skip( s, 4 ); // mono downmix
|
||||
@@ -460,19 +462,20 @@
|
||||
bs_skip( s, i_num_assoc_data * (4) );
|
||||
bs_skip( s, i_num_valid_cc * (5) );
|
||||
bs_align( s );
|
||||
- int i_comment = bs_read( s, 8 );
|
||||
+ i_comment = bs_read( s, 8 );
|
||||
bs_skip( s, i_comment * 8 );
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int Mpeg4GASpecificConfig( mpeg4_cfg_t *p_cfg, bs_t *s )
|
||||
{
|
||||
+ int i_extension_flag;
|
||||
p_cfg->i_frame_length = bs_read1(s) ? 960 : 1024;
|
||||
|
||||
if( bs_read1( s ) ) // depend on core coder
|
||||
bs_skip( s, 14 ); // core coder delay
|
||||
|
||||
- int i_extension_flag = bs_read1( s );
|
||||
+ i_extension_flag = bs_read1( s );
|
||||
if( p_cfg->i_channel == 0 )
|
||||
{
|
||||
Mpeg4GAProgramConfigElement( s );
|
||||
diff -ur vlc-0.8.6i-original/modules/stream_out/mosaic_bridge.c vlc-0.8.6i/modules/stream_out/mosaic_bridge.c
|
||||
--- vlc-0.8.6i-original/modules/stream_out/mosaic_bridge.c 2008-07-08 21:59:24.000000000 +0100
|
||||
+++ vlc-0.8.6i/modules/stream_out/mosaic_bridge.c 2009-11-08 01:22:30.000000000 +0000
|
||||
@@ -339,11 +339,12 @@
|
||||
|
||||
if ( p_sys->p_decoder != NULL )
|
||||
{
|
||||
+ void *p_owner;
|
||||
picture_t **pp_ring = p_sys->p_decoder->p_owner->pp_pics;
|
||||
|
||||
if( p_sys->p_decoder->p_module )
|
||||
module_Unneed( p_sys->p_decoder, p_sys->p_decoder->p_module );
|
||||
- void *p_owner = p_sys->p_decoder->p_owner;
|
||||
+ p_owner = p_sys->p_decoder->p_owner;
|
||||
vlc_object_detach( p_sys->p_decoder );
|
||||
vlc_object_destroy( p_sys->p_decoder );
|
||||
|
||||
diff -ur vlc-0.8.6i-original/modules/stream_out/switcher.c vlc-0.8.6i/modules/stream_out/switcher.c
|
||||
--- vlc-0.8.6i-original/modules/stream_out/switcher.c 2008-07-08 21:59:24.000000000 +0100
|
||||
+++ vlc-0.8.6i/modules/stream_out/switcher.c 2009-11-08 01:23:24.000000000 +0000
|
||||
@@ -657,8 +657,9 @@
|
||||
|
||||
if ( i_len > 0 )
|
||||
{
|
||||
+ int i_cmd;
|
||||
psz_buffer[i_len] = '\0';
|
||||
- int i_cmd = strtol( psz_buffer, NULL, 0 );
|
||||
+ i_cmd = strtol( psz_buffer, NULL, 0 );
|
||||
if ( i_cmd < -1 || i_cmd > p_sys->i_nb_pictures )
|
||||
{
|
||||
msg_Err( p_stream, "got a wrong command (%d)", i_cmd );
|
||||
diff -ur vlc-0.8.6i-original/src/extras/libc.c vlc-0.8.6i/src/extras/libc.c
|
||||
--- vlc-0.8.6i-original/src/extras/libc.c 2008-07-08 22:08:36.000000000 +0100
|
||||
+++ vlc-0.8.6i/src/extras/libc.c 2009-11-08 00:44:49.000000000 +0000
|
||||
@@ -348,7 +348,7 @@
|
||||
/*****************************************************************************
|
||||
* lldiv: returns quotient and remainder
|
||||
*****************************************************************************/
|
||||
-#if defined(SYS_BEOS) \
|
||||
+#if defined(SYS_BEOS) & !(defined(__HAIKU__))\
|
||||
|| (defined (__FreeBSD__) && (__FreeBSD__ < 5))
|
||||
lldiv_t vlc_lldiv( long long numer, long long denom )
|
||||
{
|
||||
diff -ur vlc-0.8.6i-original/src/input/input.c vlc-0.8.6i/src/input/input.c
|
||||
--- vlc-0.8.6i-original/src/input/input.c 2008-07-08 22:08:36.000000000 +0100
|
||||
+++ vlc-0.8.6i/src/input/input.c 2009-11-08 00:30:10.000000000 +0000
|
||||
@@ -1913,11 +1913,11 @@
|
||||
{
|
||||
vlc_meta_t *tk = p_meta->track[i];
|
||||
int j;
|
||||
+ char *psz_cat;
|
||||
|
||||
if( tk->i_meta > 0 )
|
||||
{
|
||||
msg_Dbg( p_input, " - track[%d]:", i );
|
||||
- char *psz_cat;
|
||||
if( asprintf( &psz_cat, "%s %d", _("Stream"), i ) != -1 )
|
||||
{
|
||||
for( j = 0; j < tk->i_meta; j++ )
|
||||
diff -ur vlc-0.8.6i-original/src/misc/beos_specific.cpp vlc-0.8.6i/src/misc/beos_specific.cpp
|
||||
--- vlc-0.8.6i-original/src/misc/beos_specific.cpp 2008-07-08 22:08:36.000000000 +0100
|
||||
+++ vlc-0.8.6i/src/misc/beos_specific.cpp 2009-11-09 18:46:51.000000000 +0000
|
||||
@@ -154,7 +154,7 @@
|
||||
{
|
||||
BAlert *alert;
|
||||
alert = new BAlert( "VLC " PACKAGE_VERSION,
|
||||
- "VLC " PACKAGE_VERSION " for BeOS\n\n"
|
||||
+ "VLC " PACKAGE_VERSION " for Haiku\n\n"
|
||||
"<www.videolan.org>", "OK");
|
||||
alert->Go( NULL );
|
||||
}
|
||||
diff -ur vlc-0.8.6i-original/src/misc/threads.c vlc-0.8.6i/src/misc/threads.c
|
||||
--- vlc-0.8.6i-original/src/misc/threads.c 2008-07-08 22:08:36.000000000 +0100
|
||||
+++ vlc-0.8.6i/src/misc/threads.c 2009-11-08 17:02:02.000000000 +0000
|
||||
@@ -647,6 +647,7 @@
|
||||
int __vlc_thread_set_priority( vlc_object_t *p_this, char * psz_file,
|
||||
int i_line, int i_priority )
|
||||
{
|
||||
+/*
|
||||
#if defined( PTH_INIT_IN_PTH_H ) || defined( ST_INIT_IN_ST_H )
|
||||
#elif defined( WIN32 ) || defined( UNDER_CE )
|
||||
if( !SetThreadPriority(GetCurrentThread(), i_priority) )
|
||||
@@ -689,7 +690,7 @@
|
||||
}
|
||||
}
|
||||
#endif
|
||||
-
|
||||
+*/
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -790,3 +791,7 @@
|
||||
p_this->b_thread = 0;
|
||||
}
|
||||
|
||||
+
|
||||
+
|
||||
+
|
||||
+
|
||||
Only in vlc-0.8.6i-original/src/misc: version.c
|
||||
diff -ur vlc-0.8.6i-original/src/misc/vlm.c vlc-0.8.6i/src/misc/vlm.c
|
||||
--- vlc-0.8.6i-original/src/misc/vlm.c 2008-07-08 22:08:36.000000000 +0100
|
||||
+++ vlc-0.8.6i/src/misc/vlm.c 2009-11-08 00:42:59.000000000 +0000
|
||||
@@ -1368,10 +1368,11 @@
|
||||
|
||||
vlm_schedule_t *vlm_ScheduleNew( vlm_t *vlm, const char *psz_name )
|
||||
{
|
||||
+ vlm_schedule_t *p_sched;
|
||||
if( !psz_name )
|
||||
return NULL;
|
||||
|
||||
- vlm_schedule_t *p_sched = malloc( sizeof( vlm_schedule_t ) );
|
||||
+ p_sched = malloc( sizeof( vlm_schedule_t ) );
|
||||
if( !p_sched )
|
||||
return NULL;
|
||||
|
||||
diff -ur vlc-0.8.6i-original/src/network/httpd.c vlc-0.8.6i/src/network/httpd.c
|
||||
--- vlc-0.8.6i-original/src/network/httpd.c 2008-07-08 22:08:36.000000000 +0100
|
||||
+++ vlc-0.8.6i/src/network/httpd.c 2009-11-08 00:33:09.000000000 +0000
|
||||
@@ -365,7 +365,7 @@
|
||||
static int httpd_FileCallBack( httpd_callback_sys_t *p_sys, httpd_client_t *cl, httpd_message_t *answer, httpd_message_t *query )
|
||||
{
|
||||
httpd_file_t *file = (httpd_file_t*)p_sys;
|
||||
- uint8_t **pp_body, *p_body;
|
||||
+ uint8_t **pp_body, *p_body, *psz_args;
|
||||
char *psz_connection = NULL;
|
||||
int *pi_body, i_body;
|
||||
|
||||
@@ -402,7 +402,7 @@
|
||||
/* msg_Warn not supported */
|
||||
}
|
||||
|
||||
- uint8_t *psz_args = query->psz_args;
|
||||
+ psz_args = query->psz_args;
|
||||
file->pf_fill( file->p_sys, file, psz_args, pp_body, pi_body );
|
||||
|
||||
if( query->i_type == HTTPD_MSG_HEAD && p_body != NULL )
|
||||
@@ -487,6 +487,7 @@
|
||||
{
|
||||
httpd_handler_t *handler = (httpd_handler_t*)p_sys;
|
||||
char psz_remote_addr[NI_MAXNUMERICHOST];
|
||||
+ uint8_t *psz_args;
|
||||
|
||||
if( answer == NULL || query == NULL )
|
||||
{
|
||||
@@ -502,7 +503,7 @@
|
||||
if( httpd_ClientIP( cl, psz_remote_addr ) == NULL )
|
||||
*psz_remote_addr = '\0';
|
||||
|
||||
- uint8_t *psz_args = query->psz_args;
|
||||
+ psz_args = query->psz_args;
|
||||
handler->pf_fill( handler->p_sys, handler, query->psz_url, psz_args,
|
||||
query->i_type, query->p_body, query->i_body,
|
||||
psz_remote_addr, NULL,
|
||||
diff -ur vlc-0.8.6i-original/src/stream_output/sap.c vlc-0.8.6i/src/stream_output/sap.c
|
||||
--- vlc-0.8.6i-original/src/stream_output/sap.c 2008-07-08 22:08:36.000000000 +0100
|
||||
+++ vlc-0.8.6i/src/stream_output/sap.c 2009-11-08 01:26:17.000000000 +0000
|
||||
@@ -287,7 +287,8 @@
|
||||
|
||||
memcpy( a6->s6_addr + 2, "\x00\x00\x00\x00\x00\x00"
|
||||
"\x00\x00\x00\x00\x00\x02\x7f\xfe", 14 );
|
||||
- if( IN6_IS_ADDR_MULTICAST( a6 ) )
|
||||
+ #ifndef __HAIKU__
|
||||
+ if( IN6_IS_ADDR_MULTICAST( a6 ) )
|
||||
{
|
||||
/* SSM <=> ff3x::/32 */
|
||||
b_ssm = (U32_AT (a6->s6_addr) & 0xfff0ffff) == 0xff300000;
|
||||
@@ -301,6 +302,7 @@
|
||||
|
||||
b_ipv6 = VLC_TRUE;
|
||||
break;
|
||||
+ #endif
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user