Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
46fc365f
Commit
46fc365f
authored
Jun 23, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flac decoder: supports avformat extradata
parent
11927a59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
modules/codec/flac.c
modules/codec/flac.c
+20
-3
No files found.
modules/codec/flac.c
View file @
46fc365f
...
@@ -379,9 +379,26 @@ static void ProcessHeader( decoder_t *p_dec )
...
@@ -379,9 +379,26 @@ static void ProcessHeader( decoder_t *p_dec )
/* Decode STREAMINFO */
/* Decode STREAMINFO */
msg_Dbg
(
p_dec
,
"decode STREAMINFO"
);
msg_Dbg
(
p_dec
,
"decode STREAMINFO"
);
p_sys
->
p_block
=
block_Alloc
(
p_dec
->
fmt_in
.
i_extra
);
size_t
i_extra
=
p_dec
->
fmt_in
.
i_extra
;
memcpy
(
p_sys
->
p_block
->
p_buffer
,
p_dec
->
fmt_in
.
p_extra
,
switch
(
i_extra
)
{
p_dec
->
fmt_in
.
i_extra
);
case
34
:
p_sys
->
p_block
=
block_Alloc
(
8
+
i_extra
);
memcpy
(
p_sys
->
p_block
->
p_buffer
+
8
,
p_dec
->
fmt_in
.
p_extra
,
i_extra
);
memcpy
(
p_sys
->
p_block
->
p_buffer
,
"fLaC"
,
4
);
uint8_t
*
p
=
p_sys
->
p_block
->
p_buffer
;
p
[
4
]
=
0
;
/* STREAMINFO */
p
[
5
]
=
0
;
p
[
6
]
=
0
;
p
[
7
]
=
34
;
/* block size */
break
;
case
42
:
p_sys
->
p_block
=
block_Alloc
(
i_extra
);
memcpy
(
p_sys
->
p_block
->
p_buffer
,
p_dec
->
fmt_in
.
p_extra
,
i_extra
);
break
;
default:
msg_Err
(
p_dec
,
"Invalid flac header size %zu
\n
"
,
i_extra
);
return
;
}
FLAC__stream_decoder_process_until_end_of_metadata
(
p_sys
->
p_flac
);
FLAC__stream_decoder_process_until_end_of_metadata
(
p_sys
->
p_flac
);
msg_Dbg
(
p_dec
,
"STREAMINFO decoded"
);
msg_Dbg
(
p_dec
,
"STREAMINFO decoded"
);
}
}
...
...
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