rtsp: add option to set the socket timeout of the lower protocol.

Fixes Ticket2294

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavf/wavdec: skip padding byte

WAV chunks must be even aligned. This patch skip the extra padding byte
if chunk size is odd.

Fixes ticket #2417.

Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavfi/mandelbrot: fix speedloss with default config after morphing introduction.

Morphing was introduced in 0d6e5a171 and forced cos/sin computations
with some mult all the time. This commit makes sure these are computed
only when morphing is enabled.
lavfi/mandelbrot: reindent after 51bcd5cd.
lavfi: always check return value of ff_get_{audio,video}_buffer()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
ffplay: set time_base of audio filter buffer src

Fixes ticket #2408.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: handle audio buffersink output properly with buffering filters

Fixes cases when the audio filter generates less or more frames than the input.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: fix indentation

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: simplify video pts calculation

Also use frame->pts instead of a standalone variable

Signed-off-by: Marton Balint <cus@passwd.hu>
lavfi/noise: copy inline asm from mp=noise

Signed-off-by: Paul B Mahol <onemda@gmail.com>
lavfi: remove noise libmpcodecs wrapper

Native filter have reached similar performance.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
avfilter/vf_noise: fix build without mmx*inline

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: simplify video pts calculation
  ffplay: fix indentation
  ffplay: handle audio buffersink output properly with buffering filters
  ffplay: set time_base of audio filter buffer src

Merged-by: Michael Niedermayer <michaelni@gmx.at>
lavc/libopenjpegdec: support interlaced layout

Fixes tickets #1102.

Interlaced layout is supported thought use of codec extradata:
  avctx->extradata[0] enables interlaced layout,
  avctx->extradata[1] stores field order.
lavf/mxfdec: support segmented frame layout as separate fields layout

According to S377M, segmented frame layout is identical to separate
field layout except that the two fields are taken from a single scan
of the incoming image, ie: they are coincident in time. Thus the
resulting frame is progressive.
lavf/mxfdec: support j2k codec with interlaced layout
lavf/mxfdec: add j2k codec to intra only codecs
lavf/mxfdec: generate ptses for interlaced j2k streams

Packet ptses correspond to field number - 1. This plus dividing by a factor
of 2 the stream time base will output correct ptses for decoded frames
since we need 2 packets for one decoded frame.
lavf/mxfdec: fix stream time base for j2k codec with interlaced layout

Since two packets are required to decoded a frame, we need to divide by
a factor of 2 the stream time base so output ptses are correct.
lavf/mxfdec: interpret interlaced j2k sample rate as field rate for some applications

Sample rate should be interpreted as field rate for the files generated
by SAMA and Canopus systems.