summaryrefslogtreecommitdiff
path: root/libavcodec/sunrastenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/sunrastenc.c')
-rw-r--r--libavcodec/sunrastenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/sunrastenc.c b/libavcodec/sunrastenc.c
index 25ae9bd039..8e90a6cc87 100644
--- a/libavcodec/sunrastenc.c
+++ b/libavcodec/sunrastenc.c
@@ -169,6 +169,7 @@ static av_cold int sunrast_encode_init(AVCodecContext *avctx)
case AV_PIX_FMT_PAL8 :
s->maptype = RMT_EQUAL_RGB;
s->maplength = 3 * 256;
+ /* fall-through */
case AV_PIX_FMT_GRAY8:
s->depth = 8;
break;