[FFmpeg-devel] [PATCH] avfilter/avf_ahistogram: raise minimum acmax to 1

Michael Niedermayer michael at niedermayer.cc
Sat May 21 04:35:52 CEST 2016

On Fri, May 20, 2016 at 08:04:28PM +0200, Paul B Mahol wrote:
> On 5/20/16, Michael Niedermayer <michael at niedermayer.cc> wrote:
> > If acmax can be 0 then it could result in a division by 0
> > Fixes CID1351345
> But there is cast to double.

yes but the result (aa) is assigned to int (h) which is undefined
behavior (if it can happen)

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 1
"Used only once"    - "Some unspecified defect prevented a second use"
"In good condition" - "Can be repaird by experienced expert"
"As is" - "You wouldnt want it even if you were payed for it, if you knew ..."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160521/cc4ac827/attachment.sig>

More information about the ffmpeg-devel mailing list