diff options
author | Jun Zhao <mypopydev@gmail.com> | 2018-12-30 13:27:21 +0800 |
---|---|---|
committer | Jun Zhao <mypopydev@gmail.com> | 2019-01-04 20:53:41 +0800 |
commit | 796da4f3e0833c7133df50756f36ed3a72e1c844 (patch) | |
tree | cede1a61c655ddee5151b583499d01e96bb8a300 | |
parent | 807b57a31b4ecca5d8c5028e7df115cd40b81c2c (diff) | |
download | ffmpeg-796da4f3e0833c7133df50756f36ed3a72e1c844.tar.gz |
lavc/libxavs2: Cosmetics: Fix indentation for switch statement
Cosmetics: Fix indentation for switch statement like the Linux
kerenl style.
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
-rw-r--r-- | libavcodec/libxavs2.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index 1df4148b6f..52c50a119f 100644 --- a/libavcodec/libxavs2.c +++ b/libavcodec/libxavs2.c @@ -161,7 +161,7 @@ static void xavs2_copy_frame(xavs2_picture_t *pic, const AVFrame *frame) } static int xavs2_encode_frame(AVCodecContext *avctx, AVPacket *pkt, - const AVFrame *frame, int *got_packet) + const AVFrame *frame, int *got_packet) { XAVS2EContext *cae = avctx->priv_data; xavs2_picture_t pic; @@ -175,22 +175,22 @@ static int xavs2_encode_frame(AVCodecContext *avctx, AVPacket *pkt, } if (frame) { switch (frame->format) { - case AV_PIX_FMT_YUV420P: - if (pic.img.in_sample_size == pic.img.enc_sample_size) { - xavs2_copy_frame(&pic, frame); - } else { - const int shift_in = atoi(cae->api->opt_get(cae->param, "SampleShift")); - xavs2_copy_frame_with_shift(&pic, frame, shift_in); - } + case AV_PIX_FMT_YUV420P: + if (pic.img.in_sample_size == pic.img.enc_sample_size) { + xavs2_copy_frame(&pic, frame); + } else { + const int shift_in = atoi(cae->api->opt_get(cae->param, "SampleShift")); + xavs2_copy_frame_with_shift(&pic, frame, shift_in); + } break; - case AV_PIX_FMT_YUV420P10: - if (pic.img.in_sample_size == pic.img.enc_sample_size) { - xavs2_copy_frame(&pic, frame); - break; - } - default: - av_log(avctx, AV_LOG_ERROR, "Unsupported pixel format\n"); - return AVERROR(EINVAL); + case AV_PIX_FMT_YUV420P10: + if (pic.img.in_sample_size == pic.img.enc_sample_size) { + xavs2_copy_frame(&pic, frame); + break; + } + default: + av_log(avctx, AV_LOG_ERROR, "Unsupported pixel format\n"); + return AVERROR(EINVAL); break; } @@ -271,7 +271,7 @@ static const AVClass libxavs2 = { static const AVCodecDefault xavs2_defaults[] = { { "b", "0" }, - { "g", "48" }, + { "g", "48"}, { "bf", "7" }, { NULL }, }; |