[FFmpeg-devel] [PATCH] libavfilter-soc: prevents division by zero in scale
Stefano Sabatini
stefano.sabatini-lala
Thu Jun 11 00:17:23 CEST 2009
On date Wednesday 2009-06-10 11:32:55 +0200, Michael Niedermayer encoded:
> On Tue, Jun 09, 2009 at 11:51:21PM +0200, Stefano Sabatini wrote:
> > On date Tuesday 2009-06-09 23:33:41 +0200, Michael Niedermayer encoded:
> > > On Tue, Jun 09, 2009 at 11:01:42PM +0200, Stefano Sabatini wrote:
> > > > Hi, as in subject.
> > > >
> > > > Regards.
> > > > --
> > > > FFmpeg = Faboulous and Fostering Multimedia Puristic Elegant Glue
> > >
> > > > vf_scale.c | 1 +
> > > > 1 file changed, 1 insertion(+)
> > > > 1d3e6890fe6ee1224e2dfc322463d24e73bcb4ee scale-fix-gcd.patch
> > > > Index: libavfilter-soc/ffmpeg/libavfilter/vf_scale.c
> > > > ===================================================================
> > > > --- libavfilter-soc.orig/ffmpeg/libavfilter/vf_scale.c 2009-06-09 22:57:53.000000000 +0200
> > > > +++ libavfilter-soc/ffmpeg/libavfilter/vf_scale.c 2009-06-09 23:01:09.000000000 +0200
> > > > @@ -137,6 +137,7 @@
> > > > out->outpic->pixel_aspect.den = picref->pixel_aspect.den * out->w * link->h;
> > > >
> > > > gcd = av_gcd(out->outpic->pixel_aspect.num, out->outpic->pixel_aspect.den);
> > > if(gcd>1){
> > > > out->outpic->pixel_aspect.num /= gcd;
> > > > out->outpic->pixel_aspect.den /= gcd;
> > > }
> >
> > Updated.
>
> ok
Applied.
--
FFmpeg = Faithless and Frenzy Magnificient Powerful Erroneous Gorilla
More information about the ffmpeg-devel
mailing list