Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
451
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
d0fc525c
Commit
d0fc525c
authored
7 months ago
by
Mangal Kushwah
Committed by
Steve Lhomme
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
mediacodec: free format returned by getOutputFormat
parent
55e0779f
No related branches found
Branches containing commit
No related tags found
1 merge request
!6041
mediacodec: free format returned by getOutputFormat
Pipeline
#516032
passed with stages
in 35 minutes and 20 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/codec/omxil/mediacodec_ndk.c
+3
-0
3 additions, 0 deletions
modules/codec/omxil/mediacodec_ndk.c
with
3 additions
and
0 deletions
modules/codec/omxil/mediacodec_ndk.c
+
3
−
0
View file @
d0fc525c
...
...
@@ -500,6 +500,8 @@ static int GetOutput(mc_api *api, int i_index, mc_api_out *p_out)
else
if
(
i_index
==
MC_API_INFO_OUTPUT_FORMAT_CHANGED
)
{
AMediaFormat
*
format
=
syms
.
AMediaCodec
.
getOutputFormat
(
p_sys
->
p_codec
);
if
(
unlikely
(
format
==
NULL
))
return
MC_API_ERROR
;
p_out
->
type
=
MC_OUT_TYPE_CONF
;
p_out
->
b_eos
=
false
;
...
...
@@ -521,6 +523,7 @@ static int GetOutput(mc_api *api, int i_index, mc_api_out *p_out)
p_out
->
conf
.
audio
.
channel_mask
=
GetFormatInteger
(
format
,
"channel-mask"
);
p_out
->
conf
.
audio
.
sample_rate
=
GetFormatInteger
(
format
,
"sample-rate"
);
}
syms
.
AMediaFormat
.
delete
(
format
);
return
1
;
}
return
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment