aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/huffyuv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-09-17 11:17:17 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-09-17 11:17:17 +0000
commit8dfc1aefca514a75d1e804c694f073b303586059 (patch)
tree1667615ae05ed49febb8f4a11c8034241e3477cd /libavcodec/huffyuv.c
parentee598f7ba44177deb8e718a5092cb0996edecec6 (diff)
downloadffmpeg-8dfc1aefca514a75d1e804c694f073b303586059.tar.gz
warning the user about possible incompatibilities
Originally committed as revision 3474 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/huffyuv.c')
-rw-r--r--libavcodec/huffyuv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c
index ac260f6a1e..55992d76af 100644
--- a/libavcodec/huffyuv.c
+++ b/libavcodec/huffyuv.c
@@ -488,6 +488,10 @@ static int encode_init(AVCodecContext *avctx)
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 @@ static int encode_init(AVCodecContext *avctx)
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;