Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
fadb01ca
Commit
fadb01ca
authored
Jul 30, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
videotoolbox: don't try to open h264 if there is no extra data
And wait for extradata parsed from the input.
parent
6f1334f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/codec/videotoolbox.m
modules/codec/videotoolbox.m
+4
-2
No files found.
modules/codec/videotoolbox.m
View file @
fadb01ca
...
...
@@ -240,8 +240,10 @@ static int StartVideoToolbox(decoder_t *p_dec, block_t *p_block)
int
i_sar_num
=
0
;
if
(
p_sys
->
codec
==
kCMVideoCodecType_H264
)
{
if
((
p_dec
->
fmt_in
.
video
.
i_width
==
0
||
p_dec
->
fmt_in
.
video
.
i_height
==
0
)
&&
p_block
==
NULL
)
{
msg_Dbg
(
p_dec
,
"waiting for H264 SPS/PPS, extra data %i"
,
p_dec
->
fmt_in
.
i_extra
);
/* Do a late opening if there is no extra data and no valid video size */
if
((
p_dec
->
fmt_in
.
video
.
i_width
==
0
||
p_dec
->
fmt_in
.
video
.
i_height
==
0
||
p_dec
->
fmt_in
.
i_extra
==
0
)
&&
p_block
==
NULL
)
{
msg_Err
(
p_dec
,
"waiting for H264 SPS/PPS, extra data %i"
,
p_dec
->
fmt_in
.
i_extra
);
return
VLC_SUCCESS
;
// return VLC_GENERIC to leave the waiting to someone else
}
...
...
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