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
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
5c36c934
Commit
5c36c934
authored
Nov 11, 2016
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: avi: handle broken samplespp == samplesize (really fix #12722)
parent
a6330f68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+8
-0
No files found.
modules/demux/avi/avi.c
View file @
5c36c934
...
...
@@ -470,6 +470,14 @@ static int Open( vlc_object_t * p_this )
tk
->
i_rate
=
p_auds
->
p_wf
->
nSamplesPerSec
;
}
/* From libavformat */
/* Fix broken sample size (which is mp2 num samples / frame) #12722 */
if
(
tk
->
i_codec
==
VLC_CODEC_MPGA
&&
tk
->
i_samplesize
==
1152
&&
p_auds
->
p_wf
->
nBlockAlign
==
1152
)
{
p_auds
->
p_wf
->
nBlockAlign
=
tk
->
i_samplesize
=
0
;
}
es_format_Init
(
&
fmt
,
AUDIO_ES
,
tk
->
i_codec
);
fmt
.
audio
.
i_channels
=
p_auds
->
p_wf
->
nChannels
;
...
...
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