diff options
author | Matthieu Bouron <matthieu.bouron@stupeflix.com> | 2016-06-20 17:30:21 +0300 |
---|---|---|
committer | Matthieu Bouron <matthieu.bouron@stupeflix.com> | 2016-06-23 15:14:15 +0300 |
commit | 30e3a27119294f7353c7a1e6d6387dbef792c203 (patch) | |
tree | 88a7fa95b105aec2f2c666d27cb05447cd0c5f24 /libavcodec | |
parent | a71d518575a5d048c58a1ecff4dda2b0ba224034 (diff) |
lavc/mediacodec: re-indent after previous commit
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mediacodecdec.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c index 6b7cdb4f97..75933fca11 100644 --- a/libavcodec/mediacodecdec.c +++ b/libavcodec/mediacodecdec.c @@ -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) { |