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
f79488d4
Commit
f79488d4
authored
Jul 10, 2007
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use proper bytestream functions
Originally committed as revision 9580 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
99439cb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
alac.c
libavcodec/alac.c
+11
-10
No files found.
libavcodec/alac.c
View file @
f79488d4
...
...
@@ -55,6 +55,7 @@
#include "avcodec.h"
#include "bitstream.h"
#include "bytestream.h"
#define ALAC_EXTRADATA_SIZE 36
#define MAX_CHANNELS 2
...
...
@@ -116,22 +117,22 @@ static int alac_set_info(ALACContext *alac)
av_log
(
alac
->
avctx
,
AV_LOG_ERROR
,
"setinfo_max_samples_per_frame too large
\n
"
);
return
-
1
;
}
alac
->
setinfo_max_samples_per_frame
=
AV_RB32
(
ptr
);
/* buffer size / 2 ? */
ptr
+=
4
;
/* buffer size / 2 ? */
alac
->
setinfo_max_samples_per_frame
=
bytestream_get_be32
(
&
ptr
);
alac
->
setinfo_7a
=
*
ptr
++
;
alac
->
setinfo_sample_size
=
*
ptr
++
;
alac
->
setinfo_rice_historymult
=
*
ptr
++
;
alac
->
setinfo_rice_initialhistory
=
*
ptr
++
;
alac
->
setinfo_rice_kmodifier
=
*
ptr
++
;
alac
->
setinfo_7f
=
*
ptr
++
;
// channels?
alac
->
setinfo_80
=
AV_RB16
(
ptr
);
ptr
+=
2
;
alac
->
setinfo_82
=
AV_RB32
(
ptr
);
// max coded frame size
ptr
+=
4
;
alac
->
setinfo_86
=
AV_RB32
(
ptr
);
// bitrate ?
ptr
+=
4
;
alac
->
setinfo_8a_rate
=
AV_RB32
(
ptr
);
// samplerate
ptr
+=
4
;
alac
->
setinfo_80
=
bytestream_get_be16
(
&
ptr
);
/* max coded frame size */
alac
->
setinfo_82
=
bytestream_get_be32
(
&
ptr
);
/* bitrate ? */
alac
->
setinfo_86
=
bytestream_get_be32
(
&
ptr
);
/* samplerate */
alac
->
setinfo_8a_rate
=
bytestream_get_be32
(
&
ptr
);
allocate_buffers
(
alac
);
...
...
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