Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
0498efe2
Commit
0498efe2
authored
Jun 03, 2007
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed flac packetizer when compiling with libflac (close #1194 again ;)
parent
2a86f364
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
modules/codec/flac.c
modules/codec/flac.c
+17
-13
No files found.
modules/codec/flac.c
View file @
0498efe2
...
@@ -271,7 +271,6 @@ static int OpenDecoder( vlc_object_t *p_this )
...
@@ -271,7 +271,6 @@ static int OpenDecoder( vlc_object_t *p_this )
#ifdef USE_LIBFLAC
#ifdef USE_LIBFLAC
p_dec
->
pf_decode_audio
=
DecodeBlock
;
p_dec
->
pf_decode_audio
=
DecodeBlock
;
#endif
#endif
p_dec
->
pf_packetize
=
PacketizeBlock
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
@@ -286,6 +285,8 @@ static int OpenPacketizer( vlc_object_t *p_this )
...
@@ -286,6 +285,8 @@ static int OpenPacketizer( vlc_object_t *p_this )
es_format_Copy
(
&
p_dec
->
fmt_out
,
&
p_dec
->
fmt_in
);
es_format_Copy
(
&
p_dec
->
fmt_out
,
&
p_dec
->
fmt_in
);
i_ret
=
OpenDecoder
(
p_this
);
i_ret
=
OpenDecoder
(
p_this
);
p_dec
->
pf_decode_audio
=
NULL
;
p_dec
->
pf_packetize
=
PacketizeBlock
;
/* Set output properties */
/* Set output properties */
p_dec
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'f'
,
'l'
,
'a'
,
'c'
);
p_dec
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'f'
,
'l'
,
'a'
,
'c'
);
...
@@ -646,19 +647,22 @@ static void DecoderMetadataCallback( const FLAC__StreamDecoder *decoder,
...
@@ -646,19 +647,22 @@ static void DecoderMetadataCallback( const FLAC__StreamDecoder *decoder,
decoder_t
*
p_dec
=
(
decoder_t
*
)
client_data
;
decoder_t
*
p_dec
=
(
decoder_t
*
)
client_data
;
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
switch
(
metadata
->
data
.
stream_info
.
bits_per_sample
)
if
(
p_dec
->
pf_decode_audio
)
{
{
case
8
:
switch
(
metadata
->
data
.
stream_info
.
bits_per_sample
)
p_dec
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
's'
,
'8'
,
' '
,
' '
);
{
break
;
case
8
:
case
16
:
p_dec
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
's'
,
'8'
,
' '
,
' '
);
p_dec
->
fmt_out
.
i_codec
=
AOUT_FMT_S16_NE
;
break
;
break
;
case
16
:
default:
p_dec
->
fmt_out
.
i_codec
=
AOUT_FMT_S16_NE
;
msg_Dbg
(
p_dec
,
"strange bit/sample value: %d"
,
break
;
metadata
->
data
.
stream_info
.
bits_per_sample
);
default:
p_dec
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'f'
,
'i'
,
'3'
,
'2'
);
msg_Dbg
(
p_dec
,
"strange bit/sample value: %d"
,
break
;
metadata
->
data
.
stream_info
.
bits_per_sample
);
p_dec
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'f'
,
'i'
,
'3'
,
'2'
);
break
;
}
}
}
/* Setup the format */
/* Setup the format */
...
...
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