lavu: Move preprocessor macros in a separate file

And remove all the circular inclusions of avutil.h while at it.
avutil: Do not expose the internal timebase value

Deprecate AV_TIME_BASE{_Q, } and provide av_time_base{_q, }()
to access this value.

This way the internal timebase can change without impacting the user
and using accessors makes the life of foreign language users much
easier.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
time_base: Replace deprecated AV_TIME_BASE{_Q, } with av_time_base{_q}()

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
lagarith: Do not write over the line boundary

When using direct rendering the resulting image is otherwise garbled.

Bug-Id: vlc/9700
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
wip: fate: FFv1 testcases

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
ffv1: Remove asserts

They seem all reachable from bogus input.
ffv1: Remove unnecessary header

And reorder them while at it..
ffv1: Make sure to clean up on error

Plug some leaks and free on non-allocated pointers.
ffv1: Encode/decode if stream is intra-only

The information is not used but the reference implementation does that.
wip: frame threading