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
7fc502fe
Commit
7fc502fe
authored
Mar 06, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg: support for libavcodec's flac decoder.
parent
07f79785
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
modules/codec/ffmpeg/audio.c
modules/codec/ffmpeg/audio.c
+12
-3
modules/codec/ffmpeg/ffmpeg.c
modules/codec/ffmpeg/ffmpeg.c
+6
-0
No files found.
modules/codec/ffmpeg/audio.c
View file @
7fc502fe
...
...
@@ -112,11 +112,20 @@ int E_(InitAudioDec)( decoder_t *p_dec, AVCodecContext *p_context,
if
(
(
p_sys
->
p_context
->
extradata_size
=
p_dec
->
fmt_in
.
i_extra
)
>
0
)
{
int
i_offset
=
0
;
if
(
p_dec
->
fmt_in
.
i_codec
==
VLC_FOURCC
(
'f'
,
'l'
,
'a'
,
'c'
)
)
i_offset
=
8
;
p_sys
->
p_context
->
extradata_size
-=
i_offset
;
p_sys
->
p_context
->
extradata
=
malloc
(
p_dec
->
fmt_in
.
i_extra
+
FF_INPUT_BUFFER_PADDING_SIZE
);
malloc
(
p_sys
->
p_context
->
extradata_size
+
FF_INPUT_BUFFER_PADDING_SIZE
);
memcpy
(
p_sys
->
p_context
->
extradata
,
p_dec
->
fmt_in
.
p_extra
,
p_dec
->
fmt_in
.
i_extra
);
memset
(
(
char
*
)
p_sys
->
p_context
->
extradata
+
p_dec
->
fmt_in
.
i_extra
,
0
,
p_dec
->
fmt_in
.
p_extra
+
i_offset
,
p_sys
->
p_context
->
extradata_size
);
memset
(
(
char
*
)
p_sys
->
p_context
->
extradata
+
p_sys
->
p_context
->
extradata_size
,
0
,
FF_INPUT_BUFFER_PADDING_SIZE
);
}
...
...
modules/codec/ffmpeg/ffmpeg.c
View file @
7fc502fe
...
...
@@ -873,6 +873,12 @@ static struct
AUDIO_ES
,
"AMR wide band"
},
#endif
#if LIBAVCODEC_BUILD >= 4703
/* FLAC */
{
VLC_FOURCC
(
'f'
,
'l'
,
'a'
,
'c'
),
CODEC_ID_FLAC
,
AUDIO_ES
,
"FLAC (Free Lossless Audio Codec)"
},
#endif
#if LIBAVCODEC_BUILD >= 4745
/* ALAC */
{
VLC_FOURCC
(
'a'
,
'l'
,
'a'
,
'c'
),
CODEC_ID_ALAC
,
...
...
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