Commit 22eef8d7 authored by Michael Niedermayer's avatar Michael Niedermayer

snowenc: dont crash with gray but exit with an error msg.

Fixes Ticket839
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9decfc17
......@@ -218,7 +218,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
// case PIX_FMT_YUV444P:
// case PIX_FMT_YUV422P:
case PIX_FMT_YUV420P:
case PIX_FMT_GRAY8:
// case PIX_FMT_GRAY8:
// case PIX_FMT_YUV411P:
// case PIX_FMT_YUV410P:
s->colorspace_type= 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment