summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2007-06-03 15:45:31 +0000
committerStefan Eßer <se@FreeBSD.org>2007-06-03 15:45:31 +0000
commit4485856311cf01f8d67d6cb534b1b5810e25f343 (patch)
tree9dd57cb439baa364983eaff7d26820dbca7ac42d
parent- Update to 1.03 (diff)
Unreak compilation with gcc-4.2: There is one expression containing a
binary operator '>?' that is accepted by gcc-3.x but not by gcc-4.2. I did not find the definition of this operator and do not know whether it is an extension found in g++-3.x, but I assume that it is a maximum value operator (a >? b) <==> max(a, b) and this patch implements this operation explicitly instead of via the (unknown in g++-4.2) operator. Submitted by: pointyhat via kris
Notes
Notes: svn path=/head/; revision=192631
-rw-r--r--multimedia/dvbcut/files/patch-playaudio.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/multimedia/dvbcut/files/patch-playaudio.cpp b/multimedia/dvbcut/files/patch-playaudio.cpp
new file mode 100644
index 000000000000..50b2cf42c124
--- /dev/null
+++ b/multimedia/dvbcut/files/patch-playaudio.cpp
@@ -0,0 +1,14 @@
+--- src/playaudio.cpp~ Fri Apr 13 19:36:27 2007
++++ src/playaudio.cpp Sat Jun 2 20:51:00 2007
+@@ -38,7 +38,10 @@
+ const uint8_t *d=(const uint8_t*)data;
+
+ while (len>0) {
+- int16_t samples[MIN_BUFFER_SAMPLES >? avcc->frame_size];
++ int samples_dim = avcc->frame_size;
++ if (samples_dim < MIN_BUFFER_SAMPLES)
++ samples_dim = MIN_BUFFER_SAMPLES;
++ int16_t samples[samples_dim];
+ int frame_size;
+
+ int bytesDecoded=avcodec_decode_audio(avcc,samples,&frame_size,(uint8_t*)d,len);