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
30e3a271
Commit
30e3a271
authored
Jun 20, 2016
by
Matthieu Bouron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/mediacodec: re-indent after previous commit
parent
a71d5185
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
mediacodecdec.c
libavcodec/mediacodecdec.c
+12
-12
No files found.
libavcodec/mediacodecdec.c
View file @
30e3a271
...
...
@@ -475,20 +475,20 @@ int ff_mediacodec_dec_decode(AVCodecContext *avctx, MediaCodecDecContext *s,
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
"
);
return
AVERROR_EXTERNAL
;
}
data
=
ff_AMediaCodec_getOutputBuffer
(
codec
,
index
,
&
size
);
if
(
!
data
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Failed to get output buffer
\n
"
);
return
AVERROR_EXTERNAL
;
}
if
((
ret
=
mediacodec_wrap_buffer
(
avctx
,
s
,
data
,
size
,
index
,
&
info
,
frame
))
<
0
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Failed to wrap MediaCodec buffer
\n
"
);
return
ret
;
}
if
((
ret
=
mediacodec_wrap_buffer
(
avctx
,
s
,
data
,
size
,
index
,
&
info
,
frame
))
<
0
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Failed to wrap MediaCodec buffer
\n
"
);
return
ret
;
}
*
got_frame
=
1
;
s
->
queued_buffer_nb
--
;
s
->
dequeued_buffer_nb
++
;
*
got_frame
=
1
;
s
->
queued_buffer_nb
--
;
s
->
dequeued_buffer_nb
++
;
}
else
{
status
=
ff_AMediaCodec_releaseOutputBuffer
(
codec
,
index
,
0
);
if
(
status
<
0
)
{
...
...
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