changeset 10632:2294cbc41c34

-brightness && -vf scale fix
author michael
date Sat, 16 Aug 2003 19:22:11 +0000
parents 7ea32a8e1001
children e322ed02fa07
files libmpcodecs/vf_scale.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_scale.c	Sat Aug 16 18:49:49 2003 +0000
+++ b/libmpcodecs/vf_scale.c	Sat Aug 16 19:22:11 2003 +0000
@@ -277,6 +277,7 @@
     int brightness, contrast, saturation, srcRange, dstRange;
     vf_equalizer_t *eq;
 
+  if(vf->priv->ctx)
     switch(request){
     case VFCTRL_GET_EQUALIZER:
 	r= sws_getColorspaceDetails(vf->priv->ctx, &inv_table, &srcRange, &table, &dstRange, &brightness, &contrast, &saturation);