Revision 8dfc1aef libavcodec/huffyuv.c

View differences:

libavcodec/huffyuv.c
488 488
    
489 489
    switch(avctx->pix_fmt){
490 490
    case PIX_FMT_YUV420P:
491
        if(avctx->strict_std_compliance>=0){
492
            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");
493
            return -1;
494
        }
491 495
        s->bitstream_bpp= 12;
492 496
        break;
493 497
    case PIX_FMT_YUV422P:
......
501 505
    s->decorrelate= s->bitstream_bpp >= 24;
502 506
    s->predictor= avctx->prediction_method;
503 507
    s->interlaced= avctx->flags&CODEC_FLAG_INTERLACED_ME ? 1 : 0;
508
    if(s->interlaced != ( height > 288 )){
509
        av_log(avctx, AV_LOG_INFO, "using huffyuv 2.2.0 or newer interlacing flag\n");
510
    }
504 511
    
505 512
    ((uint8_t*)avctx->extradata)[0]= s->predictor;
506 513
    ((uint8_t*)avctx->extradata)[1]= s->bitstream_bpp;

Also available in: Unified diff