On Thu, Mar 30, 2017 at 11:06:36PM +0200, Betty Wu wrote:
> A new filter ANSNR is added. libavfilter/Makefile is changed.
> Run 'ffmpeg -i input1 -i input2 -lavfi ansnr -f null -' to get an overall 
> score while per-frame value is stored but not printed.
> This implementation is for constructing the vmaf filter later since ANSNR is 
> one of individual tools used in vmaf.
> 
> Signed-off-by: Betty Wu <lumoso...@gmail.com>
> ---
>

[...]

> +static void *aligned_malloc(size_t size, size_t alignment)
> +{
> +    void *ptr;
> +
> +    if (posix_memalign(&ptr, alignment, size))
> +        return 0;
> +    else
> +        return ptr;
> +}

please use av_malloc()

posix_memalign is not portable


> +
> +static void aligned_free(void *ptr)
> +{
> +    free(ptr);
> +}

use av_freep()

also please see tools/patcheck


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

There will always be a question for which you do not know the correct answer.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to