mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-19 05:49:09 +02:00
lavc/mediacodec: re-indent after previous commit
This commit is contained in:
parent
a71d518575
commit
30e3a27119
@ -475,20 +475,20 @@ int ff_mediacodec_dec_decode(AVCodecContext *avctx, MediaCodecDecContext *s,
|
|||||||
info.presentationTimeUs, info.flags);
|
info.presentationTimeUs, info.flags);
|
||||||
|
|
||||||
if (info.size) {
|
if (info.size) {
|
||||||
data = ff_AMediaCodec_getOutputBuffer(codec, index, &size);
|
data = ff_AMediaCodec_getOutputBuffer(codec, index, &size);
|
||||||
if (!data) {
|
if (!data) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Failed to get output buffer\n");
|
av_log(avctx, AV_LOG_ERROR, "Failed to get output buffer\n");
|
||||||
return AVERROR_EXTERNAL;
|
return AVERROR_EXTERNAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ret = mediacodec_wrap_buffer(avctx, s, data, size, index, &info, frame)) < 0) {
|
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");
|
av_log(avctx, AV_LOG_ERROR, "Failed to wrap MediaCodec buffer\n");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
*got_frame = 1;
|
*got_frame = 1;
|
||||||
s->queued_buffer_nb--;
|
s->queued_buffer_nb--;
|
||||||
s->dequeued_buffer_nb++;
|
s->dequeued_buffer_nb++;
|
||||||
} else {
|
} else {
|
||||||
status = ff_AMediaCodec_releaseOutputBuffer(codec, index, 0);
|
status = ff_AMediaCodec_releaseOutputBuffer(codec, index, 0);
|
||||||
if (status < 0) {
|
if (status < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user