From 1a78f9dac6ee295ffae14ee4d28174ab600ef455 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Wed, 2 Mar 2005 08:16:19 +0000 Subject: [PATCH] - Enable some depreciated library functions to fix build of multimedia/mjpegtools - Bump PORTREVISION --- multimedia/libquicktime/Makefile | 1 + .../libquicktime/files/patch-src::lqt_codecs.c | 18 ++++++++++++++++++ .../files/patch-src::lqt_quicktime.c | 18 ++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 multimedia/libquicktime/files/patch-src::lqt_codecs.c create mode 100644 multimedia/libquicktime/files/patch-src::lqt_quicktime.c diff --git a/multimedia/libquicktime/Makefile b/multimedia/libquicktime/Makefile index 39af1027a89d..daa15a6d97f2 100644 --- a/multimedia/libquicktime/Makefile +++ b/multimedia/libquicktime/Makefile @@ -8,6 +8,7 @@ PORTNAME= libquicktime PORTVERSION= 0.9.4 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/multimedia/libquicktime/files/patch-src::lqt_codecs.c b/multimedia/libquicktime/files/patch-src::lqt_codecs.c new file mode 100644 index 000000000000..c328eb7034e8 --- /dev/null +++ b/multimedia/libquicktime/files/patch-src::lqt_codecs.c @@ -0,0 +1,18 @@ +--- src/lqt_codecs.c.orig Wed Mar 2 03:10:55 2005 ++++ src/lqt_codecs.c Wed Mar 2 03:11:08 2005 +@@ -787,7 +787,6 @@ + ((quicktime_codec_t*)file->vtracks[track].codec)->flush(file, track); + } + +-#if 0 + int64_t quicktime_samples_to_bytes(quicktime_trak_t *track, long samples) + { + char *compressor = track->mdia.minf.stbl.stsd.table[0].format; +@@ -802,7 +801,6 @@ + /* Default use the sample size specification for TWOS and RAW */ + return samples * channels * track->mdia.minf.stbl.stsd.table[0].sample_size / 8; + } +-#endif + int quicktime_codecs_flush(quicktime_t *file) + { + int result = 0; diff --git a/multimedia/libquicktime/files/patch-src::lqt_quicktime.c b/multimedia/libquicktime/files/patch-src::lqt_quicktime.c new file mode 100644 index 000000000000..f8d89bf2d5b7 --- /dev/null +++ b/multimedia/libquicktime/files/patch-src::lqt_quicktime.c @@ -0,0 +1,18 @@ +--- src/lqt_quicktime.c.orig Wed Mar 2 03:01:19 2005 ++++ src/lqt_quicktime.c Wed Mar 2 03:01:34 2005 +@@ -1018,7 +1018,6 @@ + return result; + } + +-#if 0 /* This function is obsolete as it makes no sense for compressed codecs */ + long quicktime_read_audio(quicktime_t *file, char *audio_buffer, long samples, int track) + { + int64_t chunk_sample, chunk; +@@ -1058,7 +1057,6 @@ + if(result) return 0; + return total_bytes; + } +-#endif + + int quicktime_read_chunk(quicktime_t *file, char *output, int track, int64_t chunk, int64_t byte_start, int64_t byte_len) + {