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
53ed79a2
Commit
53ed79a2
authored
Jan 23, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vqa: use 1/sample_rate as the audio stream time base
parent
e1ac69fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
westwood_vqa.c
libavformat/westwood_vqa.c
+2
-1
No files found.
libavformat/westwood_vqa.c
View file @
53ed79a2
...
...
@@ -122,7 +122,6 @@ static int wsvqa_read_header(AVFormatContext *s,
if
(
!
st
)
return
AVERROR
(
ENOMEM
);
st
->
start_time
=
0
;
avpriv_set_pts_info
(
st
,
33
,
1
,
VQA_FRAMERATE
);
st
->
codec
->
codec_type
=
AVMEDIA_TYPE_AUDIO
;
if
(
AV_RL16
(
&
header
[
0
])
==
1
)
st
->
codec
->
codec_id
=
CODEC_ID_WESTWOOD_SND1
;
...
...
@@ -140,6 +139,8 @@ static int wsvqa_read_header(AVFormatContext *s,
st
->
codec
->
bits_per_coded_sample
/
4
;
st
->
codec
->
block_align
=
st
->
codec
->
channels
*
st
->
codec
->
bits_per_coded_sample
;
avpriv_set_pts_info
(
st
,
64
,
1
,
st
->
codec
->
sample_rate
);
wsvqa
->
audio_stream_index
=
st
->
index
;
wsvqa
->
audio_samplerate
=
st
->
codec
->
sample_rate
;
wsvqa
->
audio_channels
=
st
->
codec
->
channels
;
...
...
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