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
e0130159
Commit
e0130159
authored
Feb 25, 2008
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix duration for ima4
Originally committed as revision 12197 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
3a957df4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
aiff.c
libavformat/aiff.c
+3
-1
No files found.
libavformat/aiff.c
View file @
e0130159
...
...
@@ -131,6 +131,7 @@ static unsigned int get_aiff_header(ByteIOContext *pb, AVCodecContext *codec,
break
;
case
CODEC_ID_ADPCM_IMA_QT
:
codec
->
block_align
=
34
*
codec
->
channels
;
codec
->
frame_size
=
64
;
break
;
default:
break
;
...
...
@@ -390,7 +391,8 @@ got_sound:
av_set_pts_info
(
st
,
64
,
1
,
st
->
codec
->
sample_rate
);
st
->
start_time
=
0
;
st
->
duration
=
st
->
nb_frames
;
st
->
duration
=
st
->
codec
->
frame_size
?
st
->
nb_frames
*
st
->
codec
->
frame_size
:
st
->
nb_frames
;
/* Position the stream at the first block */
url_fseek
(
pb
,
offset
,
SEEK_SET
);
...
...
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