Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
58057e72
Commit
58057e72
authored
Nov 24, 2016
by
François Grisez
Browse files
Disable flushing of MediaCodec context on video size changing
parent
26746a98
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/android/mediacodech264dec.c
src/android/mediacodech264dec.c
+2
-2
No files found.
src/android/mediacodech264dec.c
View file @
58057e72
...
...
@@ -287,8 +287,8 @@ static void dec_process(MSFilter *f){
if
(
need_reinit
)
{
//In case of rotation, the decoder needs to flushed in order to restart with the new video size
ms_message
(
"MSMediaCodecH264Dec: video size has changed. Flushing all MediaCodec's buffers"
);
AMediaCodec_flush
(
d
->
codec
);
d
->
first_buffer_queued
=
FALSE
;
//
AMediaCodec_flush(d->codec);
//
d->first_buffer_queued = FALSE;
}
/*First put our H264 bitstream into the decoder*/
...
...
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