Mercurial > mplayer.hg
comparison libmpcodecs/vf_spp.c @ 20585:68b55a823fd4
qp height should be in macroblocks, not pixels
author | henry |
---|---|
date | Wed, 01 Nov 2006 19:52:42 +0000 |
parents | e83548b7bd3b |
children | a124f3abc1ec |
comparison
equal
deleted
inserted
replaced
20584:200ec2faa4e1 | 20585:68b55a823fd4 |
---|---|
475 } | 475 } |
476 | 476 |
477 vf->priv->mpeg2= mpi->qscale_type; | 477 vf->priv->mpeg2= mpi->qscale_type; |
478 if(mpi->pict_type != 3 && mpi->qscale && !vf->priv->qp){ | 478 if(mpi->pict_type != 3 && mpi->qscale && !vf->priv->qp){ |
479 if(!vf->priv->non_b_qp) | 479 if(!vf->priv->non_b_qp) |
480 vf->priv->non_b_qp= malloc(mpi->qstride * mpi->h); | 480 vf->priv->non_b_qp= malloc(mpi->qstride * ((mpi->h + 15) >> 4)); |
481 memcpy(vf->priv->non_b_qp, mpi->qscale, mpi->qstride * mpi->h); | 481 memcpy(vf->priv->non_b_qp, mpi->qscale, mpi->qstride * ((mpi->h + 15) >> 4)); |
482 } | 482 } |
483 if(vf->priv->log2_count || !(mpi->flags&MP_IMGFLAG_DIRECT)){ | 483 if(vf->priv->log2_count || !(mpi->flags&MP_IMGFLAG_DIRECT)){ |
484 char *qp_tab= vf->priv->non_b_qp; | 484 char *qp_tab= vf->priv->non_b_qp; |
485 if((vf->priv->mode&4) || !qp_tab) | 485 if((vf->priv->mode&4) || !qp_tab) |
486 qp_tab= mpi->qscale; | 486 qp_tab= mpi->qscale; |