[FFmpeg-devel] [PATCH] libavfilter-soc: prevents division by zero in scale
Michael Niedermayer
michaelni
Wed Jun 10 11:32:55 CEST 2009
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
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090610/a4819a7d/attachment.pgp>
More information about the ffmpeg-devel
mailing list