comparison DOCS/tech/libmpcodecs.txt @ 28268:dc64eca366cf

Fix d_width vs. d_height typo.
author diego
date Sun, 11 Jan 2009 19:48:01 +0000
parents 757aca6254a3
children 49ecb0f6c55f
comparison
equal deleted inserted replaced
28267:757aca6254a3 28268:dc64eca366cf
257 static int config(struct vf_instance_s* vf, 257 static int config(struct vf_instance_s* vf,
258 int width, int height, int d_width, int d_height, 258 int width, int height, int d_width, int d_height,
259 unsigned int flags, unsigned int outfmt){ 259 unsigned int flags, unsigned int outfmt){
260 // use d_width/d_height if not set by user: 260 // use d_width/d_height if not set by user:
261 if(vf->priv->w==-1) vf->priv->w=d_width; 261 if(vf->priv->w==-1) vf->priv->w=d_width;
262 if(vf->priv->h==-1) vf->priv->h=d_width; 262 if(vf->priv->h==-1) vf->priv->h=d_height;
263 // initialize your filter code 263 // initialize your filter code
264 ... 264 ...
265 // OK now config the rest of the filter chain, with our output parameters: 265 // OK now config the rest of the filter chain, with our output parameters:
266 return vf_next_config(vf,vf->priv->w,vf->priv->h,d_width,d_height,flags,outfmt); 266 return vf_next_config(vf,vf->priv->w,vf->priv->h,d_width,d_height,flags,outfmt);
267 } 267 }