celp_math: rename ff_log2 to ff_log2_q15

This name is more descriptive as the function returns a fixed-point
value with 15 fraction bits.

Signed-off-by: Mans Rullgard <mans@mansr.com>
avutil: remove inline av_log2 from public API

This removes inline av_log2 and av_log2_16bit from the public API,
instead exporting them as regular functions.  In-tree code still
gets the inline and otherwise optimised variants.

Signed-off-by: Mans Rullgard <mans@mansr.com>
avutil: make some tables visible again

These tables are used for instance by older versions of libavcodec and
need to remain visible until the next SONAME bump.

Signed-off-by: Martin Storsjö <martin@martin.st>
avutil: Add a copy of ff_sqrt_tab back into avutil to restore ABI compatibility

Earlier versions of for instance of libavcodec expect this symbol to be
present in libavutil. This commit can be reverted after the next major
bump.

New shared builds of avcodec will link to the internal copy of the
table within that library, so those builds won't rely on this table
being present in avutil any longer either.

Signed-off-by: Martin Storsjö <martin@martin.st>
ffv1: split decoder and encoder
ffv1: propagate errors
nutdec: fix integer overflow

Fixes CID700575
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
riff_has_valid_tags: remove unused variable

Fixes CID739471
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
rtmp_write_amf_data: remove dead code

Fixes CID732199
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
rtpdec: check av_new_packet() return value

Fixes CID733715
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
udp: add missing mutex unlock

Fixes CID703688
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavf/subviewerdec: fix potential timing overflows.

Should fix CID733779 and CID733780.
lavf/webvttdec: fix potential timing overflows.

Should fix CID733781 and CID733782.
lavfi/silencedetect: increase duration precision.

This should also fix CID717889.
mp3dec: propagate error code correctly.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
mp3demux: Rewrite xing TOC based seeking

The libav code depends on mp3 startcodes only occuring at the start of
frames. But there is nothing in mp3 that prevents them occuring elsewhere
by chance. Thus the code would fail randomly, the new code searches for 3
consecutive valid frames. If this turns out to be still insufficient the
number can be raised further, or additional checks added.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffv1: fix gray

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit 'd15c21e5fa3961f10026da1a3080a3aa3cf4cec9'

* commit 'd15c21e5fa3961f10026da1a3080a3aa3cf4cec9':
  avutil: Add a copy of ff_sqrt_tab back into avutil to restore ABI compatibility
  avutil: make some tables visible again
  avutil: remove inline av_log2 from public API
  celp_math: rename ff_log2 to ff_log2_q15

Conflicts:
	libavutil/libavutil.v

Merged-by: Michael Niedermayer <michaelni@gmx.at>
ffv1: split decoder and encoder

This is not based on lucas work due to code divergence (its less work this way
than trying to merge from a split based on 2 years outdated code)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit '71f7b22dba60524b2285643ae0b49d8f64977129'

* commit '71f7b22dba60524b2285643ae0b49d8f64977129':
  ffv1: split decoder and encoder

Conflicts:
	libavcodec/Makefile
	libavcodec/ffv1.c
	libavcodec/ffv1.h
	libavcodec/ffv1dec.c
	libavcodec/ffv1enc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>