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
2e6bd22b
Commit
2e6bd22b
authored
Dec 22, 2012
by
Piotr Bandurski
Committed by
Michael Niedermayer
Dec 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rmdec: set bit rate for ra4
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
bc5d6e4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
rmdec.c
libavformat/rmdec.c
+6
-1
No files found.
libavformat/rmdec.c
View file @
2e6bd22b
...
...
@@ -148,6 +148,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVIOContext *pb,
}
else
{
int
flavor
,
sub_packet_h
,
coded_framesize
,
sub_packet_size
;
int
codecdata_length
;
unsigned
bytes_per_minute
;
/* old version (4) */
avio_skip
(
pb
,
2
);
/* unused */
avio_rb32
(
pb
);
/* .ra4 */
...
...
@@ -157,7 +158,11 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVIOContext *pb,
flavor
=
avio_rb16
(
pb
);
/* add codec info / flavor */
ast
->
coded_framesize
=
coded_framesize
=
avio_rb32
(
pb
);
/* coded frame size */
avio_rb32
(
pb
);
/* ??? */
avio_rb32
(
pb
);
/* ??? */
bytes_per_minute
=
avio_rb32
(
pb
);
if
(
version
==
4
)
{
if
(
bytes_per_minute
)
st
->
codec
->
bit_rate
=
8LL
*
bytes_per_minute
/
60
;
}
avio_rb32
(
pb
);
/* ??? */
ast
->
sub_packet_h
=
sub_packet_h
=
avio_rb16
(
pb
);
/* 1 */
st
->
codec
->
block_align
=
avio_rb16
(
pb
);
/* frame size */
...
...
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