Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
5afecff1
Commit
5afecff1
authored
May 15, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/adxdec: set bit_rate, fixes duration calculation
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
7fe81bc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
adxdec.c
libavformat/adxdec.c
+1
-0
No files found.
libavformat/adxdec.c
View file @
5afecff1
...
@@ -111,6 +111,7 @@ static int adx_read_header(AVFormatContext *s)
...
@@ -111,6 +111,7 @@ static int adx_read_header(AVFormatContext *s)
par
->
codec_type
=
AVMEDIA_TYPE_AUDIO
;
par
->
codec_type
=
AVMEDIA_TYPE_AUDIO
;
par
->
codec_id
=
s
->
iformat
->
raw_codec_id
;
par
->
codec_id
=
s
->
iformat
->
raw_codec_id
;
par
->
bit_rate
=
par
->
sample_rate
*
par
->
channels
*
BLOCK_SIZE
*
8LL
/
BLOCK_SAMPLES
;
avpriv_set_pts_info
(
st
,
64
,
BLOCK_SAMPLES
,
par
->
sample_rate
);
avpriv_set_pts_info
(
st
,
64
,
BLOCK_SAMPLES
,
par
->
sample_rate
);
...
...
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