Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
0acb0141
Commit
0acb0141
authored
Jul 10, 2017
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Jul 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rawaud: initialize the ES directly with the known codec
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
78cfbb8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
modules/demux/rawaud.c
modules/demux/rawaud.c
+2
-3
No files found.
modules/demux/rawaud.c
View file @
0acb0141
...
...
@@ -110,10 +110,9 @@ static int Open( vlc_object_t * p_this )
if
(
!
p_sys
)
return
VLC_ENOMEM
;
es_format_Init
(
&
p_sys
->
fmt
,
AUDIO_ES
,
0
);
char
*
psz_fourcc
=
var_CreateGetString
(
p_demux
,
"rawaud-fourcc"
);
p_sys
->
fmt
.
i_codec
=
vlc_fourcc_GetCodecFromString
(
AUDIO_ES
,
psz_fourcc
);
es_format_Init
(
&
p_sys
->
fmt
,
AUDIO_ES
,
vlc_fourcc_GetCodecFromString
(
AUDIO_ES
,
psz_fourcc
)
);
free
(
psz_fourcc
);
if
(
!
p_sys
->
fmt
.
i_codec
)
...
...
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