Use av_restrict instead of restrict in libavcodec/opus_celt.c.
avcodec/utils: Fix undefined behavior in avpriv_toupper4

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/cavs: prevent out of array read

The used value should not matter as long as its within the array
as it is multiplied by 0

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/opusdec: fix some const correctness

also make a const array static
Fixes 2 warnings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
configure: add check for AVX inline support

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
swresample: add swri_resample_float_avx

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avfilter/vignette: fix input frame memory leak.

Fixes Ticket #3642.
vignette: reuse already declared ctx.
avfilter/vignette: add direct rendering.
avfilter/vignette: reindent after previous commit.
FATE/opus: increase fuzz for the celt tests

This seems to be needed on some 32bit arches.
avisynth: set duration of audio streams

Signed-off-by: Anton Khirnov <anton@khirnov.net>
estimate_timings_from_pts: Warn about A/V streams for which no duration could be set

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
estimate_timings_from_pts: Also consider packet duration

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
estimate_timings_from_pts: simplify filesize end check

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
estimate_timings_from_pts: Try to get the duration for all streams

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
estimate_timings_from_pts: Execute max 1 iteration extra to find more than 1 duration

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/mpeg12enc: Favor storing DAR instead of SAR

fixes Ticket 2689

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/mpeg12enc: avoid floats in the aspect ratio info setup code

This fixes potential rounding issues with floats, and also
fixes a division by 0

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
build: Support building using clang-usan and disable-optimization

Clang Undefined Behaviour Sanitizer seems to make non-constant constant
expressions, making the compilation fail when they are used within
inline assembly if no optimization is requested.

Add -O1 to the cflags to hide the misbehaviour.

Bug-Id: 683