aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-02-11 18:31:05 +0100
committerPaul B Mahol <onemda@gmail.com>2017-02-11 20:20:07 +0100
commit54b5cc035a04aeac8206295a2e37b3877c8a7a7a (patch)
tree194850f5bf44acbda8a02d14a4681495619fa9d8
parent5b2c0eebeea9994d251765f92d37a20a902b1a02 (diff)
downloadffmpeg-54b5cc035a04aeac8206295a2e37b3877c8a7a7a.tar.gz
avcodec/flicvideo: fix some indentation issues
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/flicvideo.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/libavcodec/flicvideo.c b/libavcodec/flicvideo.c
index c9c6c24e55..f8d81fd4e7 100644
--- a/libavcodec/flicvideo.c
+++ b/libavcodec/flicvideo.c
@@ -767,8 +767,8 @@ static int flic_decode_frame_24BPP(AVCodecContext *avctx,
void *data, int *got_frame,
const uint8_t *buf, int buf_size)
{
- av_log(avctx, AV_LOG_ERROR, "24Bpp FLC Unsupported due to lack of test files.\n");
- return AVERROR_PATCHWELCOME;
+ av_log(avctx, AV_LOG_ERROR, "24Bpp FLC Unsupported due to lack of test files.\n");
+ return AVERROR_PATCHWELCOME;
}
static int flic_decode_frame(AVCodecContext *avctx,
@@ -778,17 +778,15 @@ static int flic_decode_frame(AVCodecContext *avctx,
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
if (avctx->pix_fmt == AV_PIX_FMT_PAL8) {
- return flic_decode_frame_8BPP(avctx, data, got_frame,
- buf, buf_size);
- }
- else if ((avctx->pix_fmt == AV_PIX_FMT_RGB555) ||
- (avctx->pix_fmt == AV_PIX_FMT_RGB565)) {
- return flic_decode_frame_15_16BPP(avctx, data, got_frame,
- buf, buf_size);
- }
- else if (avctx->pix_fmt == AV_PIX_FMT_BGR24) {
- return flic_decode_frame_24BPP(avctx, data, got_frame,
- buf, buf_size);
+ return flic_decode_frame_8BPP(avctx, data, got_frame,
+ buf, buf_size);
+ } else if ((avctx->pix_fmt == AV_PIX_FMT_RGB555) ||
+ (avctx->pix_fmt == AV_PIX_FMT_RGB565)) {
+ return flic_decode_frame_15_16BPP(avctx, data, got_frame,
+ buf, buf_size);
+ } else if (avctx->pix_fmt == AV_PIX_FMT_BGR24) {
+ return flic_decode_frame_24BPP(avctx, data, got_frame,
+ buf, buf_size);
}
/* Should not get here, ever as the pix_fmt is processed */