mirror of https://github.com/mpv-player/mpv
qp height should be in macroblocks, not pixels
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20601 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fa58eb8846
commit
1c714fb0ca
|
@ -531,8 +531,8 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts)
|
|||
vf->priv->mpeg2= mpi->qscale_type;
|
||||
if(mpi->pict_type != 3 && mpi->qscale && !vf->priv->qp){
|
||||
if(!vf->priv->non_b_qp)
|
||||
vf->priv->non_b_qp= malloc(mpi->qstride * mpi->h);
|
||||
memcpy(vf->priv->non_b_qp, mpi->qscale, mpi->qstride * mpi->h);
|
||||
vf->priv->non_b_qp= malloc(mpi->qstride * ((mpi->h + 15) >> 4));
|
||||
memcpy(vf->priv->non_b_qp, mpi->qscale, mpi->qstride * ((mpi->h + 15) >> 4));
|
||||
}
|
||||
if(vf->priv->log2_count || !(mpi->flags&MP_IMGFLAG_DIRECT)){
|
||||
char *qp_tab= vf->priv->non_b_qp;
|
||||
|
|
|
@ -477,8 +477,8 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){
|
|||
vf->priv->mpeg2= mpi->qscale_type;
|
||||
if(mpi->pict_type != 3 && mpi->qscale && !vf->priv->qp){
|
||||
if(!vf->priv->non_b_qp)
|
||||
vf->priv->non_b_qp= malloc(mpi->qstride * mpi->h);
|
||||
memcpy(vf->priv->non_b_qp, mpi->qscale, mpi->qstride * mpi->h);
|
||||
vf->priv->non_b_qp= malloc(mpi->qstride * ((mpi->h + 15) >> 4));
|
||||
memcpy(vf->priv->non_b_qp, mpi->qscale, mpi->qstride * ((mpi->h + 15) >> 4));
|
||||
}
|
||||
if(vf->priv->log2_count || !(mpi->flags&MP_IMGFLAG_DIRECT)){
|
||||
char *qp_tab= vf->priv->non_b_qp;
|
||||
|
|
Loading…
Reference in New Issue