Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
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
videolan
vlc
Commits
4402375e
Commit
4402375e
authored
Jun 25, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decode G.726 in Wav
parent
7705abff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/demux/wav.c
modules/demux/wav.c
+5
-2
No files found.
modules/demux/wav.c
View file @
4402375e
...
...
@@ -339,6 +339,7 @@ static int Open( vlc_object_t * p_this )
/* FIXME set end of area FIXME */
goto
error
;
case
VLC_FOURCC
(
'a'
,
'g'
,
's'
,
'm'
):
case
VLC_FOURCC
(
'g'
,
'7'
,
'2'
,
'6'
):
if
(
FrameInfo_MSGSM
(
&
p_sys
->
i_frame_size
,
&
p_sys
->
i_frame_samples
,
&
p_sys
->
fmt
)
)
goto
error
;
...
...
@@ -351,12 +352,13 @@ static int Open( vlc_object_t * p_this )
if
(
p_sys
->
i_frame_size
<=
0
||
p_sys
->
i_frame_samples
<=
0
)
{
msg_Dbg
(
p_demux
,
"invalid frame size"
);
msg_Dbg
(
p_demux
,
"invalid frame size: %i %i"
,
p_sys
->
i_frame_size
,
p_sys
->
i_frame_samples
);
goto
error
;
}
if
(
p_sys
->
fmt
.
audio
.
i_rate
<=
0
)
{
msg_Dbg
(
p_demux
,
"invalid sample rate
"
);
msg_Dbg
(
p_demux
,
"invalid sample rate
: %i"
,
p_sys
->
fmt
.
audio
.
i_rate
);
goto
error
;
}
...
...
@@ -385,6 +387,7 @@ static int Open( vlc_object_t * p_this )
return
VLC_SUCCESS
;
error:
msg_Err
(
p_demux
,
"An error occured during wav demuxing"
);
free
(
p_wf
);
free
(
p_sys
);
return
VLC_EGENERIC
;
...
...
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