Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
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
Steve Lhomme
VLC
Commits
eded4377
Commit
eded4377
authored
Jul 07, 2017
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Jul 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec:fourcc: return VLC_CODEC_UNKNOWN directly instead of 0
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
f16fcc17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
modules/codec/avcodec/fourcc.c
modules/codec/avcodec/fourcc.c
+1
-1
modules/demux/avformat/demux.c
modules/demux/avformat/demux.c
+1
-3
No files found.
modules/codec/avcodec/fourcc.c
View file @
eded4377
...
...
@@ -547,5 +547,5 @@ vlc_fourcc_t GetVlcFourcc( unsigned i_ffmpeg_codec )
if
(
spu_codecs
[
i
].
i_codec
==
i_ffmpeg_codec
)
return
spu_codecs
[
i
].
i_fourcc
;
}
return
0
;
return
VLC_CODEC_UNKNOWN
;
}
modules/demux/avformat/demux.c
View file @
eded4377
...
...
@@ -358,9 +358,6 @@ int OpenDemux( vlc_object_t *p_this )
es_out_id_t
*
es
=
NULL
;
es_format_t
es_fmt
;
const
char
*
psz_type
=
"unknown"
;
vlc_fourcc_t
fcc
=
GetVlcFourcc
(
cp
->
codec_id
);
if
(
!
fcc
)
fcc
=
VLC_CODEC_UNKNOWN
;
/* Do not use the cover art as a stream */
if
(
s
->
disposition
==
AV_DISPOSITION_ATTACHED_PIC
)
...
...
@@ -369,6 +366,7 @@ int OpenDemux( vlc_object_t *p_this )
continue
;
}
vlc_fourcc_t
fcc
=
GetVlcFourcc
(
cp
->
codec_id
);
switch
(
cp
->
codec_type
)
{
case
AVMEDIA_TYPE_AUDIO
:
...
...
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