diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-06-12 13:01:20 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-08-12 14:42:20 +0200 |
commit | 4d209dada78aabedc765f393794c1a3e137b1b4f (patch) | |
tree | 1b5d47b07bbcb95ec60ebb0bc256bc4cedd77f71 | |
parent | 048e978e8eb3dc645114102655cdcb065c3eb6c2 (diff) | |
download | ffmpeg-4d209dada78aabedc765f393794c1a3e137b1b4f.tar.gz |
lavc/decode: reindent
-rw-r--r-- | libavcodec/decode.c | 28 |
1 files 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); |