OSDN Git Service

ffv1: Warn the user if transparency is stored.
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 15 Feb 2012 18:34:08 +0000 (19:34 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 15 Feb 2012 19:35:14 +0000 (20:35 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ffv1.c

index 48b8ae1..0ab22a9 100644 (file)
@@ -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){