Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
a71d5185
Commit
a71d5185
authored
Jun 20, 2016
by
Matthieu Bouron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/mediacodec: discard 0-sized buffers
Their only purpose is to carry the end of stream flag.
parent
c8550e82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
mediacodecdec.c
libavcodec/mediacodecdec.c
+7
-0
No files found.
libavcodec/mediacodecdec.c
View file @
a71d5185
...
...
@@ -474,6 +474,7 @@ int ff_mediacodec_dec_decode(AVCodecContext *avctx, MediaCodecDecContext *s,
" flags=%"
PRIu32
"
\n
"
,
index
,
info
.
offset
,
info
.
size
,
info
.
presentationTimeUs
,
info
.
flags
);
if
(
info
.
size
)
{
data
=
ff_AMediaCodec_getOutputBuffer
(
codec
,
index
,
&
size
);
if
(
!
data
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Failed to get output buffer
\n
"
);
...
...
@@ -488,6 +489,12 @@ int ff_mediacodec_dec_decode(AVCodecContext *avctx, MediaCodecDecContext *s,
*
got_frame
=
1
;
s
->
queued_buffer_nb
--
;
s
->
dequeued_buffer_nb
++
;
}
else
{
status
=
ff_AMediaCodec_releaseOutputBuffer
(
codec
,
index
,
0
);
if
(
status
<
0
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Failed to release output buffer
\n
"
);
}
}
}
else
if
(
ff_AMediaCodec_infoOutputFormatChanged
(
codec
,
index
))
{
char
*
format
=
NULL
;
...
...
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