24 lines
591 B
Plaintext
24 lines
591 B
Plaintext
$OpenBSD: patch-liba52_bitstream_c,v 1.3 2002/08/22 12:19:17 espie Exp $
|
|
--- liba52/bitstream.c.orig Sun Jul 28 03:52:06 2002
|
|
+++ liba52/bitstream.c Thu Aug 22 13:51:10 2002
|
|
@@ -23,6 +23,7 @@
|
|
|
|
#include "config.h"
|
|
|
|
+#include <stddef.h>
|
|
#include <inttypes.h>
|
|
|
|
#include "a52.h"
|
|
@@ -33,9 +34,9 @@
|
|
|
|
void a52_bitstream_set_ptr (a52_state_t * state, uint8_t * buf)
|
|
{
|
|
- int align;
|
|
+ ptrdiff_t align;
|
|
|
|
- align = (long)buf & 3;
|
|
+ align = (ptrdiff_t)buf & 3;
|
|
state->buffer_start = (uint32_t *) (buf - align);
|
|
state->bits_left = 0;
|
|
bitstream_get (state, align * 8);
|