Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
742b9617
Commit
742b9617
authored
Jun 30, 2013
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename constant FRAMESIZE in ra144 codec as FRAME_SIZE.
The aix header sys/mstsave.h defines FRAMESIZE as _FRAMESIZE.
parent
674d8a96
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
ra144.h
libavcodec/ra144.h
+1
-1
ra144dec.c
libavcodec/ra144dec.c
+3
-3
ra144enc.c
libavcodec/ra144enc.c
+2
-2
No files found.
libavcodec/ra144.h
View file @
742b9617
...
...
@@ -30,7 +30,7 @@
#define BLOCKSIZE 40 ///< subblock size in 16-bit words
#define BUFFERSIZE 146 ///< the size of the adaptive codebook
#define FIXED_CB_SIZE 128 ///< size of fixed codebooks
#define FRAME
SIZE
20 ///< size of encoded frame
#define FRAME
_SIZE
20 ///< size of encoded frame
#define LPC_ORDER 10 ///< order of LPC filter
typedef
struct
RA144Context
{
...
...
libavcodec/ra144dec.c
View file @
742b9617
...
...
@@ -76,7 +76,7 @@ static int ra144_decode_frame(AVCodecContext * avctx, void *data,
RA144Context
*
ractx
=
avctx
->
priv_data
;
GetBitContext
gb
;
if
(
buf_size
<
FRAMESIZE
)
{
if
(
buf_size
<
FRAME
_
SIZE
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Frame too small (%d bytes). Truncated file?
\n
"
,
buf_size
);
*
got_frame_ptr
=
0
;
...
...
@@ -89,7 +89,7 @@ static int ra144_decode_frame(AVCodecContext * avctx, void *data,
return
ret
;
samples
=
(
int16_t
*
)
frame
->
data
[
0
];
init_get_bits
(
&
gb
,
buf
,
FRAMESIZE
*
8
);
init_get_bits
(
&
gb
,
buf
,
FRAME
_
SIZE
*
8
);
for
(
i
=
0
;
i
<
LPC_ORDER
;
i
++
)
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,
*
got_frame_ptr
=
1
;
return
FRAMESIZE
;
return
FRAME
_
SIZE
;
}
AVCodec
ff_ra_144_decoder
=
{
...
...
libavcodec/ra144enc.c
View file @
742b9617
...
...
@@ -447,7 +447,7 @@ static int ra144_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
if
(
ractx
->
last_frame
)
return
0
;
if
((
ret
=
ff_alloc_packet2
(
avctx
,
avpkt
,
FRAMESIZE
))
<
0
)
if
((
ret
=
ff_alloc_packet2
(
avctx
,
avpkt
,
FRAME
_
SIZE
))
<
0
)
return
ret
;
/**
...
...
@@ -536,7 +536,7 @@ static int ra144_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
ff_af_queue_remove
(
&
ractx
->
afq
,
avctx
->
frame_size
,
&
avpkt
->
pts
,
&
avpkt
->
duration
);
avpkt
->
size
=
FRAMESIZE
;
avpkt
->
size
=
FRAME
_
SIZE
;
*
got_packet_ptr
=
1
;
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment