Mercurial > libavcodec.hg
comparison asv1.c @ 2635:eaa57c3336fc libavcodec
PIX_FMT_NONE and related fixes
author | michael |
---|---|
date | Mon, 25 Apr 2005 18:29:06 +0000 |
parents | 91e094c9dcdc |
children | 659b92488061 |
comparison
equal
deleted
inserted
replaced
2634:337217ecbb3e | 2635:eaa57c3336fc |
---|---|
555 const int scale= avctx->codec_id == CODEC_ID_ASV1 ? 1 : 2; | 555 const int scale= avctx->codec_id == CODEC_ID_ASV1 ? 1 : 2; |
556 | 556 |
557 common_init(avctx); | 557 common_init(avctx); |
558 init_vlcs(a); | 558 init_vlcs(a); |
559 ff_init_scantable(a->dsp.idct_permutation, &a->scantable, scantab); | 559 ff_init_scantable(a->dsp.idct_permutation, &a->scantable, scantab); |
560 avctx->pix_fmt= PIX_FMT_YUV420P; | |
560 | 561 |
561 a->inv_qscale= ((uint8_t*)avctx->extradata)[0]; | 562 a->inv_qscale= ((uint8_t*)avctx->extradata)[0]; |
562 if(a->inv_qscale == 0){ | 563 if(a->inv_qscale == 0){ |
563 av_log(avctx, AV_LOG_ERROR, "illegal qscale 0\n"); | 564 av_log(avctx, AV_LOG_ERROR, "illegal qscale 0\n"); |
564 if(avctx->codec_id == CODEC_ID_ASV1) | 565 if(avctx->codec_id == CODEC_ID_ASV1) |