lavr: move AudioMix struct definition to audio_mix.c
h264-mt: handle NAL_DPAs before calling ff_thread_finish_setup

Since a NAL_DPA can start a new frame it has to be handled before
ff_thread_finish_setup is called.
h264: fix memleak on error during SPS parsing

Introduced in d7d6efe42b0d.
lavfi/crop: add support to option parsing

Also fix documentation accordingly.
doc/filters: itemize crop examples
doc/filters: add basic crop examples

Use it to show difference between shorthand and named parameters.
doc/filters: extend syntax description for transpose, and add examples
doc/filters: remove @example use for showing syntax

I forgot to merge with the previous commit.
mpegvideo_enc/rv20: width and height must be multiple of 4

RealPlayer does not play rv20 files when sizes are not multiple of 4

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavf: Provide a monotonic timestamp to the outside world

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg: replace magic number with VSYNC_CFR
h264: dont mess with frame gaps on second fields.

Fixes assertion failure

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavf: fix integer overflows

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
wrap_timestamp: remove unneeded check

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg: Improve filter input fps selection heuristic.

This fixes a broken file that has a incorrect timebase at the codec level.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffplay: improve robustness of opt_codec(), and add options acodec,vcodec,scodec

Fail with a meaningfull error message in case of bogus input.

Also the new options are more consistent with the rest of the tool
options, since it does not support generic stream specifiers.
ffplay: set codec_id in codec context

Set codec id in case another codec is forced on the context (e.g. when
the user specify the codec with -codec).

For example fix:
ffplay -vcodec pgmyuv -i "tests/vsynth1/%02d.pgm"
ffplay: provide some feedback in case the codec cannot be set
thp: set duration
brstm: fix number of samples for the last block

Signed-off-by: James Almer <jamrial@gmail.com>