Commit 664acabe authored by michael's avatar michael

warning the user about possible incompatibilities


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3474 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0579ac82
...@@ -488,6 +488,10 @@ static int encode_init(AVCodecContext *avctx) ...@@ -488,6 +488,10 @@ static int encode_init(AVCodecContext *avctx)
switch(avctx->pix_fmt){ switch(avctx->pix_fmt){
case PIX_FMT_YUV420P: 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; s->bitstream_bpp= 12;
break; break;
case PIX_FMT_YUV422P: case PIX_FMT_YUV422P:
...@@ -501,6 +505,9 @@ static int encode_init(AVCodecContext *avctx) ...@@ -501,6 +505,9 @@ static int encode_init(AVCodecContext *avctx)
s->decorrelate= s->bitstream_bpp >= 24; s->decorrelate= s->bitstream_bpp >= 24;
s->predictor= avctx->prediction_method; s->predictor= avctx->prediction_method;
s->interlaced= avctx->flags&CODEC_FLAG_INTERLACED_ME ? 1 : 0; 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)[0]= s->predictor;
((uint8_t*)avctx->extradata)[1]= s->bitstream_bpp; ((uint8_t*)avctx->extradata)[1]= s->bitstream_bpp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment