[FFmpeg-cvslog] ffv1: Warn the user if transparency is stored.

Michael Niedermayer git at videolan.org
Wed Feb 15 21:39:29 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Feb 15 19:34:08 2012 +0100| [25893ad6c96be126f8c6dd3bfae05679004fc9a2] | committer: Michael Niedermayer

ffv1: Warn the user if transparency is stored.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=25893ad6c96be126f8c6dd3bfae05679004fc9a2
---

 libavcodec/ffv1.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index 48b8ae1..0ab22a9 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){



More information about the ffmpeg-cvslog mailing list