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
9258870f
Commit
9258870f
authored
Sep 03, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediacodec: remove limits for input size
parent
ab7cd556
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
modules/codec/omxil/mediacodec_jni.c
modules/codec/omxil/mediacodec_jni.c
+7
-0
modules/codec/omxil/mediacodec_ndk.c
modules/codec/omxil/mediacodec_ndk.c
+2
-0
No files found.
modules/codec/omxil/mediacodec_jni.c
View file @
9258870f
...
...
@@ -479,6 +479,7 @@ static int Start(mc_api *api, const char *psz_name, const char *psz_mime,
jobject
jcodec
=
NULL
;
jobject
jformat
=
NULL
;
jstring
jrotation_string
=
NULL
;
jstring
jmaxinputsize_string
=
NULL
;
jobject
jinput_buffers
=
NULL
;
jobject
joutput_buffers
=
NULL
;
jobject
jbuffer_info
=
NULL
;
...
...
@@ -542,6 +543,10 @@ static int Start(mc_api *api, const char *psz_name, const char *psz_mime,
p_args
->
audio
.
i_sample_rate
,
p_args
->
audio
.
i_channel_count
);
}
/* No limits for input size */
jmaxinputsize_string
=
(
*
env
)
->
NewStringUTF
(
env
,
"max-input-size"
);
(
*
env
)
->
CallVoidMethod
(
env
,
jformat
,
jfields
.
set_integer
,
jmaxinputsize_string
,
0
);
if
(
b_direct_rendering
)
{
...
...
@@ -614,6 +619,8 @@ error:
(
*
env
)
->
DeleteLocalRef
(
env
,
jformat
);
if
(
jrotation_string
)
(
*
env
)
->
DeleteLocalRef
(
env
,
jrotation_string
);
if
(
jmaxinputsize_string
)
(
*
env
)
->
DeleteLocalRef
(
env
,
jmaxinputsize_string
);
if
(
jinput_buffers
)
(
*
env
)
->
DeleteLocalRef
(
env
,
jinput_buffers
);
if
(
joutput_buffers
)
...
...
modules/codec/omxil/mediacodec_ndk.c
View file @
9258870f
...
...
@@ -320,6 +320,8 @@ static int Start(mc_api *api, const char *psz_name, const char *psz_mime,
syms
.
AMediaFormat
.
setInt32
(
p_sys
->
p_format
,
"encoder"
,
0
);
syms
.
AMediaFormat
.
setString
(
p_sys
->
p_format
,
"mime"
,
psz_mime
);
/* No limits for input size */
syms
.
AMediaFormat
.
setInt32
(
p_sys
->
p_format
,
"max-input-size"
,
0
);
if
(
api
->
b_video
)
{
syms
.
AMediaFormat
.
setInt32
(
p_sys
->
p_format
,
"width"
,
p_args
->
video
.
i_width
);
...
...
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