Mercurial > libavcodec.hg
comparison huffyuv.c @ 3259:6baa0bfee0b8 libavcodec
ffv1 and ffvhuff havnt changed since a long time and noone proposed any
changes within 1 month after my warning so they are officially no longer
experimental and we will gurantee decodeability of files encoded with
the currenzt ffv1/ffvhuff in the future
author | michael |
---|---|
date | Fri, 14 Apr 2006 10:37:40 +0000 |
parents | 823272bdb4f7 |
children | f76861f4d5ca |
comparison
equal
deleted
inserted
replaced
3258:8d42d21e570c | 3259:6baa0bfee0b8 |
---|---|
539 av_log(avctx, AV_LOG_ERROR, "Error: per-frame huffman tables are not supported by huffyuv; use vcodec=ffvhuff\n"); | 539 av_log(avctx, AV_LOG_ERROR, "Error: per-frame huffman tables are not supported by huffyuv; use vcodec=ffvhuff\n"); |
540 return -1; | 540 return -1; |
541 } | 541 } |
542 if(s->interlaced != ( s->height > 288 )) | 542 if(s->interlaced != ( s->height > 288 )) |
543 av_log(avctx, AV_LOG_INFO, "using huffyuv 2.2.0 or newer interlacing flag\n"); | 543 av_log(avctx, AV_LOG_INFO, "using huffyuv 2.2.0 or newer interlacing flag\n"); |
544 }else if(avctx->strict_std_compliance>FF_COMPLIANCE_EXPERIMENTAL){ | |
545 av_log(avctx, AV_LOG_ERROR, "This codec is under development; files encoded with it may not be decodable with future versions!!! Set vstrict=-2 / -strict -2 to use it anyway.\n"); | |
546 return -1; | |
547 } | 544 } |
548 | 545 |
549 ((uint8_t*)avctx->extradata)[0]= s->predictor; | 546 ((uint8_t*)avctx->extradata)[0]= s->predictor; |
550 ((uint8_t*)avctx->extradata)[1]= s->bitstream_bpp; | 547 ((uint8_t*)avctx->extradata)[1]= s->bitstream_bpp; |
551 ((uint8_t*)avctx->extradata)[2]= s->interlaced ? 0x10 : 0x20; | 548 ((uint8_t*)avctx->extradata)[2]= s->interlaced ? 0x10 : 0x20; |