]> git.sesse.net Git - ffmpeg/commitdiff
lavc/mediacodec: re-indent after previous commit
authorMatthieu Bouron <matthieu.bouron@stupeflix.com>
Mon, 20 Jun 2016 14:30:21 +0000 (16:30 +0200)
committerMatthieu Bouron <matthieu.bouron@stupeflix.com>
Thu, 23 Jun 2016 12:14:15 +0000 (14:14 +0200)
libavcodec/mediacodecdec.c

index 6b7cdb4f97912d73a997f35148d31ced723ca859..75933fca11bbb26df9265f5e50b076acc78478ac 100644 (file)
@@ -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) {