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
a43e19d4
Commit
a43e19d4
authored
Sep 26, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FLAC: split encoder from decoder
parent
442744ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
modules/codec/flac.c
modules/codec/flac.c
+7
-0
No files found.
modules/codec/flac.c
View file @
a43e19d4
...
@@ -93,8 +93,10 @@ static const int pi_channels_maps[9] =
...
@@ -93,8 +93,10 @@ static const int pi_channels_maps[9] =
static
int
OpenDecoder
(
vlc_object_t
*
);
static
int
OpenDecoder
(
vlc_object_t
*
);
static
void
CloseDecoder
(
vlc_object_t
*
);
static
void
CloseDecoder
(
vlc_object_t
*
);
#ifdef ENABLE_SOUT
static
int
OpenEncoder
(
vlc_object_t
*
);
static
int
OpenEncoder
(
vlc_object_t
*
);
static
void
CloseEncoder
(
vlc_object_t
*
);
static
void
CloseEncoder
(
vlc_object_t
*
);
#endif
static
block_t
*
DecodeBlock
(
decoder_t
*
,
block_t
**
);
static
block_t
*
DecodeBlock
(
decoder_t
*
,
block_t
**
);
...
@@ -111,11 +113,13 @@ vlc_module_begin ()
...
@@ -111,11 +113,13 @@ vlc_module_begin ()
set_capability
(
"decoder"
,
100
)
set_capability
(
"decoder"
,
100
)
set_callbacks
(
OpenDecoder
,
CloseDecoder
)
set_callbacks
(
OpenDecoder
,
CloseDecoder
)
#ifdef ENABLE_SOUT
add_submodule
()
add_submodule
()
add_shortcut
(
"flac"
)
add_shortcut
(
"flac"
)
set_description
(
N_
(
"Flac audio encoder"
)
)
set_description
(
N_
(
"Flac audio encoder"
)
)
set_capability
(
"encoder"
,
100
)
set_capability
(
"encoder"
,
100
)
set_callbacks
(
OpenEncoder
,
CloseEncoder
)
set_callbacks
(
OpenEncoder
,
CloseEncoder
)
#endif
vlc_module_end
()
vlc_module_end
()
...
@@ -568,6 +572,8 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
...
@@ -568,6 +572,8 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
return
p_sys
->
p_aout_buffer
;
return
p_sys
->
p_aout_buffer
;
}
}
#ifdef ENABLE_SOUT
/*****************************************************************************
/*****************************************************************************
* encoder_sys_t : flac encoder descriptor
* encoder_sys_t : flac encoder descriptor
*****************************************************************************/
*****************************************************************************/
...
@@ -790,3 +796,4 @@ static void CloseEncoder( vlc_object_t *p_this )
...
@@ -790,3 +796,4 @@ static void CloseEncoder( vlc_object_t *p_this )
free
(
p_sys
->
p_buffer
);
free
(
p_sys
->
p_buffer
);
free
(
p_sys
);
free
(
p_sys
);
}
}
#endif
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