Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Steve Lhomme
VLC
Commits
30441c11
Commit
30441c11
authored
Feb 24, 2017
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: avformat: workaround AAC in FLV incorrect timestamps (fix #8195)
parent
c099968d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
modules/demux/avformat/demux.c
modules/demux/avformat/demux.c
+12
-0
No files found.
modules/demux/avformat/demux.c
View file @
30441c11
...
...
@@ -817,6 +817,18 @@ static int Demux( demux_t *p_demux )
if
(
p_stream
->
codecpar
->
codec_type
==
AVMEDIA_TYPE_VIDEO
&&
pkt
.
dts
!=
(
int64_t
)
AV_NOPTS_VALUE
&&
pkt
.
dts
==
pkt
.
pts
)
p_frame
->
i_pts
=
VLC_TS_INVALID
;
/* Handle broken dts/pts increase with AAC. Duration is correct.
* sky_the80s_aacplus.flv #8195 */
if
(
p_stream
->
codecpar
->
codec_type
==
AVMEDIA_TYPE_AUDIO
&&
p_stream
->
codecpar
->
codec_id
==
AV_CODEC_ID_AAC
)
{
if
(
p_sys
->
tk_pcr
[
pkt
.
stream_index
]
!=
VLC_TS_INVALID
&&
p_sys
->
tk_pcr
[
pkt
.
stream_index
]
+
p_frame
->
i_length
>
p_frame
->
i_dts
)
{
p_frame
->
i_dts
=
p_frame
->
i_pts
=
p_sys
->
tk_pcr
[
pkt
.
stream_index
]
+
p_frame
->
i_length
;
}
}
}
#ifdef AVFORMAT_DEBUG
msg_Dbg
(
p_demux
,
"tk[%d] dts=%"
PRId64
" pts=%"
PRId64
,
...
...
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