bitmap_packet: let max=0 mean unlimited

And remove the strange PACKER_MAX_WH define. This is more convenient for
users which don't care about limits, such as sd_lavc.c.
This commit is contained in:
wm4
2016-06-18 19:31:23 +02:00
parent 07c11656e3
commit 0cf187caca
3 changed files with 7 additions and 7 deletions

View File

@@ -150,7 +150,6 @@ static int init(struct sd *sd)
priv->displayed_id = -1;
priv->current_pts = MP_NOPTS_VALUE;
priv->packer = talloc_zero(priv, struct bitmap_packer);
priv->packer->w_max = priv->packer->h_max = PACKER_MAX_WH;
return 0;
error: