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
3bbd8b0c
Commit
3bbd8b0c
authored
Apr 23, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediacodec: handle vc1 delayed opening if there is no extradata
parent
08f6114d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
1 deletion
+34
-1
modules/codec/omxil/android_mediacodec.c
modules/codec/omxil/android_mediacodec.c
+34
-1
No files found.
modules/codec/omxil/android_mediacodec.c
View file @
3bbd8b0c
...
...
@@ -760,6 +760,17 @@ static int OpenDecoder(vlc_object_t *p_this)
if
(
!
p_dec
->
p_sys
->
timestamp_fifo
)
goto
error
;
switch
(
p_dec
->
fmt_in
.
i_codec
)
{
case
VLC_CODEC_VC1
:
if
(
!
p_dec
->
fmt_in
.
i_extra
)
{
msg_Warn
(
p_dec
,
"waiting for extra data for codec %4.4s"
,
(
const
char
*
)
&
p_dec
->
fmt_in
.
i_codec
);
return
VLC_SUCCESS
;
}
break
;
}
return
OpenMediaCodec
(
p_dec
,
env
);
error:
...
...
@@ -1128,6 +1139,28 @@ static picture_t *DecodeVideo(decoder_t *p_dec, block_t **pp_block)
goto
endclean
;
}
/* try delayed opening if there is a new extra data */
if
(
!
p_sys
->
codec
)
{
bool
b_delayed_open
=
false
;
switch
(
p_dec
->
fmt_in
.
i_codec
)
{
case
VLC_CODEC_VC1
:
if
(
p_dec
->
fmt_in
.
i_extra
)
b_delayed_open
=
true
;
default:
break
;
}
if
(
b_delayed_open
&&
OpenMediaCodec
(
p_dec
,
env
)
!=
VLC_SUCCESS
)
{
b_error
=
true
;
goto
endclean
;
}
}
if
(
!
p_sys
->
codec
)
goto
endclean
;
/* Use the aspect ratio provided by the input (ie read from packetizer).
* Don't check the current value of the aspect ratio in fmt_out, since we
* want to allow changes in it to propagate. */
...
...
@@ -1192,7 +1225,7 @@ static picture_t *DecodeVideo(decoder_t *p_dec, block_t **pp_block)
}
while
(
p_block
&&
i_input_ret
!=
1
&&
i_output_ret
!=
1
);
endclean:
if
(
p_sys
->
error_state
||
b_error
)
if
(
p_sys
->
error_state
||
b_error
||
!
p_sys
->
codec
)
{
if
(
p_block
)
{
...
...
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