The aix header sys/mstsave.h defines FRAMESIZE as _FRAMESIZE.
Carl Eugen Hoyos authored on 2013/06/30 20:45:10... | ... |
@@ -30,7 +30,7 @@ |
30 | 30 |
#define BLOCKSIZE 40 ///< subblock size in 16-bit words |
31 | 31 |
#define BUFFERSIZE 146 ///< the size of the adaptive codebook |
32 | 32 |
#define FIXED_CB_SIZE 128 ///< size of fixed codebooks |
33 |
-#define FRAMESIZE 20 ///< size of encoded frame |
|
33 |
+#define FRAME_SIZE 20 ///< size of encoded frame |
|
34 | 34 |
#define LPC_ORDER 10 ///< order of LPC filter |
35 | 35 |
|
36 | 36 |
typedef struct RA144Context { |
... | ... |
@@ -76,7 +76,7 @@ static int ra144_decode_frame(AVCodecContext * avctx, void *data, |
76 | 76 |
RA144Context *ractx = avctx->priv_data; |
77 | 77 |
GetBitContext gb; |
78 | 78 |
|
79 |
- if (buf_size < FRAMESIZE) { |
|
79 |
+ if (buf_size < FRAME_SIZE) { |
|
80 | 80 |
av_log(avctx, AV_LOG_ERROR, |
81 | 81 |
"Frame too small (%d bytes). Truncated file?\n", buf_size); |
82 | 82 |
*got_frame_ptr = 0; |
... | ... |
@@ -89,7 +89,7 @@ static int ra144_decode_frame(AVCodecContext * avctx, void *data, |
89 | 89 |
return ret; |
90 | 90 |
samples = (int16_t *)frame->data[0]; |
91 | 91 |
|
92 |
- init_get_bits(&gb, buf, FRAMESIZE * 8); |
|
92 |
+ init_get_bits(&gb, buf, FRAME_SIZE * 8); |
|
93 | 93 |
|
94 | 94 |
for (i = 0; i < LPC_ORDER; i++) |
95 | 95 |
lpc_refl[i] = ff_lpc_refl_cb[i][get_bits(&gb, sizes[i])]; |
... | ... |
@@ -122,7 +122,7 @@ static int ra144_decode_frame(AVCodecContext * avctx, void *data, |
122 | 122 |
|
123 | 123 |
*got_frame_ptr = 1; |
124 | 124 |
|
125 |
- return FRAMESIZE; |
|
125 |
+ return FRAME_SIZE; |
|
126 | 126 |
} |
127 | 127 |
|
128 | 128 |
AVCodec ff_ra_144_decoder = { |
... | ... |
@@ -447,7 +447,7 @@ static int ra144_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, |
447 | 447 |
if (ractx->last_frame) |
448 | 448 |
return 0; |
449 | 449 |
|
450 |
- if ((ret = ff_alloc_packet2(avctx, avpkt, FRAMESIZE)) < 0) |
|
450 |
+ if ((ret = ff_alloc_packet2(avctx, avpkt, FRAME_SIZE)) < 0) |
|
451 | 451 |
return ret; |
452 | 452 |
|
453 | 453 |
/** |
... | ... |
@@ -536,7 +536,7 @@ static int ra144_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, |
536 | 536 |
ff_af_queue_remove(&ractx->afq, avctx->frame_size, &avpkt->pts, |
537 | 537 |
&avpkt->duration); |
538 | 538 |
|
539 |
- avpkt->size = FRAMESIZE; |
|
539 |
+ avpkt->size = FRAME_SIZE; |
|
540 | 540 |
*got_packet_ptr = 1; |
541 | 541 |
return 0; |
542 | 542 |
} |