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
7546ac2f
Commit
7546ac2f
authored
Jan 04, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mp3dec: fix start time in light of initial skip samples
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
22fa50d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
mp3dec.c
libavformat/mp3dec.c
+4
-0
No files found.
libavformat/mp3dec.c
View file @
7546ac2f
...
@@ -165,6 +165,10 @@ static int mp3_parse_vbr_tags(AVFormatContext *s, AVStream *st, int64_t base)
...
@@ -165,6 +165,10 @@ static int mp3_parse_vbr_tags(AVFormatContext *s, AVStream *st, int64_t base)
mp3
->
start_pad
=
v
>>
12
;
mp3
->
start_pad
=
v
>>
12
;
mp3
->
end_pad
=
v
&
4095
;
mp3
->
end_pad
=
v
&
4095
;
st
->
skip_samples
=
mp3
->
start_pad
+
528
+
1
;
st
->
skip_samples
=
mp3
->
start_pad
+
528
+
1
;
if
(
!
st
->
start_time
)
st
->
start_time
=
av_rescale_q
(
st
->
skip_samples
,
(
AVRational
){
1
,
c
.
sample_rate
},
st
->
time_base
);
av_log
(
s
,
AV_LOG_DEBUG
,
"pad %d %d
\n
"
,
mp3
->
start_pad
,
mp3
->
end_pad
);
av_log
(
s
,
AV_LOG_DEBUG
,
"pad %d %d
\n
"
,
mp3
->
start_pad
,
mp3
->
end_pad
);
}
}
}
}
...
...
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