[FFmpeg-devel] [PATCH] libavfilter/scale: Populate ow/oh when using 0 as w/h
michael at niedermayer.cc
Tue Jun 13 04:42:16 EEST 2017
On Wed, Jun 07, 2017 at 03:54:26AM -0400, Kevin Mark wrote:
> I also have to wonder if it would be advantageous to add the cast on
> the right side as well. That way the var_values variables will have
> the proper truncated values on future evaluations. Open to comments on
> On Wed, Jun 7, 2017 at 3:45 AM, Kevin Mark <kmark937 at gmail.com> wrote:
> > - eval_w = var_values[VAR_OUT_W] = var_values[VAR_OW] = res;
> > + eval_w = var_values[VAR_OUT_W] = var_values[VAR_OW] = (int) res == 0 ? inlink->w : res;
> to perhaps:
> + eval_w = var_values[VAR_OUT_W] = var_values[VAR_OW] = (int) res
> == 0 ? inlink->w : (int) res;
> Without that extra cast I assume the values in eval_w and
> var_values[VAR_OUT_W], var_values[VAR_OW] could be different. I doubt
> most users expect that those values could ever be non-integers which
> has implications for how you're writing your expression.
why is there a cast at all ?
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
If you fake or manipulate statistics in a paper in physics you will never
get a job again.
If you fake or manipulate statistics in a paper in medicin you will get
a job for life at the pharma industry.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: Digital signature
More information about the ffmpeg-devel