ffmpeg | branch: master | Anton Khirnov <an...@khirnov.net> | Wed Jun 12 
13:01:20 2024 +0200| [4d209dada78aabedc765f393794c1a3e137b1b4f] | committer: 
Anton Khirnov

lavc/decode: reindent

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4d209dada78aabedc765f393794c1a3e137b1b4f
---

 libavcodec/decode.c | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index a5d4f696b2..7cc2543c5c 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -614,21 +614,21 @@ static int decode_receive_frame_internal(AVCodecContext 
*avctx, AVFrame *frame)
 
     if (codec->cb_type == FF_CODEC_CB_TYPE_RECEIVE_FRAME) {
         while (1) {
-        frame->pict_type = dc->initial_pict_type;
-        frame->flags    |= dc->intra_only_flag;
-        ret = codec->cb.receive_frame(avctx, frame);
-        emms_c();
-        if (!ret) {
-            if (avctx->codec->type == AVMEDIA_TYPE_AUDIO) {
-                int64_t discarded_samples = 0;
-                ret = discard_samples(avctx, frame, &discarded_samples);
-            }
-            if (ret == AVERROR(EAGAIN) || (frame->flags & 
AV_FRAME_FLAG_DISCARD)) {
-                av_frame_unref(frame);
-                continue;
+            frame->pict_type = dc->initial_pict_type;
+            frame->flags    |= dc->intra_only_flag;
+            ret = codec->cb.receive_frame(avctx, frame);
+            emms_c();
+            if (!ret) {
+                if (avctx->codec->type == AVMEDIA_TYPE_AUDIO) {
+                    int64_t discarded_samples = 0;
+                    ret = discard_samples(avctx, frame, &discarded_samples);
+                }
+                if (ret == AVERROR(EAGAIN) || (frame->flags & 
AV_FRAME_FLAG_DISCARD)) {
+                    av_frame_unref(frame);
+                    continue;
+                }
             }
-        }
-        break;
+            break;
         }
     } else
         ret = decode_simple_receive_frame(avctx, frame);

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to