diff options
Diffstat (limited to 'libavcodec/mss2.c')
-rw-r--r-- | libavcodec/mss2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/mss2.c b/libavcodec/mss2.c index c0c47dc..2a0bf47 100644 --- a/libavcodec/mss2.c +++ b/libavcodec/mss2.c @@ -844,6 +844,10 @@ static av_cold int mss2_decode_init(AVCodecContext *avctx) return ret; } ff_mss2dsp_init(&ctx->dsp); + + avctx->pix_fmt = c->free_colours == 127 ? PIX_FMT_RGB555 + : PIX_FMT_RGB24; + return 0; } |