26 lines
815 B
Plaintext
26 lines
815 B
Plaintext
$OpenBSD: patch-src_player_c,v 1.8 2012/03/20 14:27:45 dcoppa Exp $
|
|
|
|
Add missing include
|
|
|
|
Our faad port uses a patched neaacdec.h header
|
|
|
|
--- src/player.c.orig Tue Mar 20 14:47:07 2012
|
|
+++ src/player.c Tue Mar 20 14:54:05 2012
|
|
@@ -28,6 +28,7 @@ THE SOFTWARE.
|
|
#include <math.h>
|
|
#include <stdint.h>
|
|
#include <limits.h>
|
|
+#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
|
|
#include "player.h"
|
|
@@ -187,7 +188,7 @@ static WaitressCbReturn_t BarPlayerAACCb (void *ptr, s
|
|
/* +1+4 needs to be replaced by <something>! */
|
|
player->bufferRead += 1+4;
|
|
char err = NeAACDecInit2 (player->aacHandle, player->buffer +
|
|
- player->bufferRead, 5, &player->samplerate,
|
|
+ player->bufferRead, 5, (void *)&player->samplerate,
|
|
&player->channels);
|
|
player->bufferRead += 5;
|
|
if (err != 0) {
|