changeset 2238:7fdb3361925a libavcodec

warning the user about possible incompatibilities
author michael
date Fri, 17 Sep 2004 11:17:17 +0000
parents d43321e67acd
children 506fdbb9d19c
files huffyuv.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/huffyuv.c	Fri Sep 17 10:57:57 2004 +0000
+++ b/huffyuv.c	Fri Sep 17 11:17:17 2004 +0000
@@ -488,6 +488,10 @@
     
     switch(avctx->pix_fmt){
     case PIX_FMT_YUV420P:
+        if(avctx->strict_std_compliance>=0){
+            av_log(avctx, AV_LOG_ERROR, "Warning: YV12-huffyuv is not supported by windows huffyuv use a different colorspace or use (v)strict=-1\n");
+            return -1;
+        }
         s->bitstream_bpp= 12;
         break;
     case PIX_FMT_YUV422P:
@@ -501,6 +505,9 @@
     s->decorrelate= s->bitstream_bpp >= 24;
     s->predictor= avctx->prediction_method;
     s->interlaced= avctx->flags&CODEC_FLAG_INTERLACED_ME ? 1 : 0;
+    if(s->interlaced != ( height > 288 )){
+        av_log(avctx, AV_LOG_INFO, "using huffyuv 2.2.0 or newer interlacing flag\n");
+    }
     
     ((uint8_t*)avctx->extradata)[0]= s->predictor;
     ((uint8_t*)avctx->extradata)[1]= s->bitstream_bpp;