opnsense-ports/multimedia/libav/files/patch-libavcodec-libilbc.c
Franco Fichtner a737ce6b05 */*: sync previously available, but unused ports
Taken from: FreeBSD
2015-04-22 06:45:04 +02:00

30 lines
948 B
C

--- libavcodec/libilbc.c.orig 2015-03-09 02:54:09.000000000 +0100
+++ libavcodec/libilbc.c 2015-04-03 19:12:02.210836254 +0200
@@ -20,6 +20,7 @@
*/
#include <ilbc.h>
+#include <stdint.h>
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
@@ -95,8 +96,8 @@
return ret;
}
- WebRtcIlbcfix_DecodeImpl((WebRtc_Word16*) frame->data[0],
- (const WebRtc_UWord16*) buf, &s->decoder, 1);
+ WebRtcIlbcfix_DecodeImpl((int16_t*) frame->data[0],
+ (const uint16_t*) buf, &s->decoder, 1);
*got_frame_ptr = 1;
@@ -168,7 +169,7 @@
return ret;
}
- WebRtcIlbcfix_EncodeImpl((WebRtc_UWord16*) avpkt->data, (const WebRtc_Word16*) frame->data[0], &s->encoder);
+ WebRtcIlbcfix_EncodeImpl((uint16_t*) avpkt->data, (const int16_t*) frame->data[0], &s->encoder);
avpkt->size = s->encoder.no_of_bytes;
*got_packet_ptr = 1;