From 25893ad6c96be126f8c6dd3bfae05679004fc9a2 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 15 Feb 2012 19:34:08 +0100 Subject: [PATCH] ffv1: Warn the user if transparency is stored. Signed-off-by: Michael Niedermayer --- libavcodec/ffv1.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index 48b8ae17e9..0ab22a984c 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -930,6 +930,10 @@ static av_cold int encode_init(AVCodecContext *avctx) av_log(avctx, AV_LOG_ERROR, "format not supported\n"); return -1; } + if (s->transparency) { + av_log(avctx, AV_LOG_WARNING, "Storing alpha plane, this will require a recent FFV1 decoder to playback!\n"); + } + for(i=0; i<256; i++){ s->quant_table_count=2; if(s->bits_per_raw_sample <=8){