avcodec/flicvideo: fix some indentation issues
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
5b2c0eebee
commit
54b5cc035a
@ -767,8 +767,8 @@ static int flic_decode_frame_24BPP(AVCodecContext *avctx,
|
|||||||
void *data, int *got_frame,
|
void *data, int *got_frame,
|
||||||
const uint8_t *buf, int buf_size)
|
const uint8_t *buf, int buf_size)
|
||||||
{
|
{
|
||||||
av_log(avctx, AV_LOG_ERROR, "24Bpp FLC Unsupported due to lack of test files.\n");
|
av_log(avctx, AV_LOG_ERROR, "24Bpp FLC Unsupported due to lack of test files.\n");
|
||||||
return AVERROR_PATCHWELCOME;
|
return AVERROR_PATCHWELCOME;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int flic_decode_frame(AVCodecContext *avctx,
|
static int flic_decode_frame(AVCodecContext *avctx,
|
||||||
@ -778,17 +778,15 @@ static int flic_decode_frame(AVCodecContext *avctx,
|
|||||||
const uint8_t *buf = avpkt->data;
|
const uint8_t *buf = avpkt->data;
|
||||||
int buf_size = avpkt->size;
|
int buf_size = avpkt->size;
|
||||||
if (avctx->pix_fmt == AV_PIX_FMT_PAL8) {
|
if (avctx->pix_fmt == AV_PIX_FMT_PAL8) {
|
||||||
return flic_decode_frame_8BPP(avctx, data, got_frame,
|
return flic_decode_frame_8BPP(avctx, data, got_frame,
|
||||||
buf, buf_size);
|
buf, buf_size);
|
||||||
}
|
} else if ((avctx->pix_fmt == AV_PIX_FMT_RGB555) ||
|
||||||
else if ((avctx->pix_fmt == AV_PIX_FMT_RGB555) ||
|
(avctx->pix_fmt == AV_PIX_FMT_RGB565)) {
|
||||||
(avctx->pix_fmt == AV_PIX_FMT_RGB565)) {
|
return flic_decode_frame_15_16BPP(avctx, data, got_frame,
|
||||||
return flic_decode_frame_15_16BPP(avctx, data, got_frame,
|
buf, buf_size);
|
||||||
buf, buf_size);
|
} else if (avctx->pix_fmt == AV_PIX_FMT_BGR24) {
|
||||||
}
|
return flic_decode_frame_24BPP(avctx, data, got_frame,
|
||||||
else if (avctx->pix_fmt == AV_PIX_FMT_BGR24) {
|
buf, buf_size);
|
||||||
return flic_decode_frame_24BPP(avctx, data, got_frame,
|
|
||||||
buf, buf_size);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Should not get here, ever as the pix_fmt is processed */
|
/* Should not get here, ever as the pix_fmt is processed */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user