vp8: avoid race condition on segment map.

This change avoids accessing the segment map of the previous frame if
segmentation is not enabled for the current frame. The caller of
decode_mb_mode() only calls ff_thread_await_progress() on the reference
segmentation index array if segmentation is enabled, so Chromium's TSAN
will report a race when accessing this data while segmentation is not
enabled.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
FATE: add test for adpcm-ea-maxis-xa

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
FATE: change fate-maxis-xa to a normal demuxing test

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
ffplay: reset audio_pkt_temp when opening audio

Otherwise we may use the remaining data of the last packet from the previous
audio stream. Fixes bug #951.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: use frame count based queueing for audio queue

This reduces the number of queued frames for audio data but also reduces the
amount of A-V difference after changing the audio stream (because less frames
are queued). Fixes bug #1035.

Signed-off-by: Marton Balint <cus@passwd.hu>
FATE: Add ZeroCodec test

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
zerocodec: Fix license

ISC doesn't contain this line, so remove it to
prevent confusion.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
id3v2: set the keyframe flag on attached pictures.
lavf: requeue attached pictures after seeking.

This allows the caller to get them without special code even after
seeking before receiving any data.
lavf: use AVStream.discard to disable queueing attached pictures.
Move AVFormatContext/AVCodecContext option tables to separate files.

This will allow us to automatically generate manpages for them.
doc/avconv: remove entries for AVOptions.

Documentation for those will be generated automatically.
Generate manpages for AV{Format,Codec}Context AVOptions.
flv: clarify use of video info/cmd frame.

Also add generated key frame in the enum, and doxycomment the existing
ones. Descriptions are directly taken from the public specifications.
libavformat: Set the default for the max_delay option to -1

Make the muxers/demuxers that use the field handle the default
-1 in the same way as 0.

This allows distinguishing an intentionally set 0 from the default
value where the user hasn't set it.

Signed-off-by: Martin Storsjö <martin@martin.st>
rtsp: Set the default delay to 0.1 s for the RTSP/SDP/RTP demuxers

This enables reordering of UDP packets by default, unless the caller
explicitly sets -max_delay 0.

Signed-off-by: Martin Storsjö <martin@martin.st>
movenc: Add a min_frag_duration option

The other fragmentation options (frag_duration, frag_size and
frag_keyframe) are combined with OR, cutting fragments at the
first of the conditions being fulfilled.

Signed-off-by: Martin Storsjö <martin@martin.st>
doc: texi2pod: add -I flag

This allows specifying additional directories to search for
@include files.

Signed-off-by: Mans Rullgard <mans@mansr.com>
doc: pass -Idoc texi2html and texi2pod

This fixes doc generation in build tree separate from source.

Signed-off-by: Mans Rullgard <mans@mansr.com>
pngdec: Print error messages for the various failure pathes.

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