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

Paul B Mahol onemda at gmail.com
Sat May 21 15:55:27 CEST 2016


On 5/21/16, Michael Niedermayer <michael at niedermayer.cc> wrote:
> 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
> ..."
>

ok then


More information about the ffmpeg-devel mailing list