ffplay: put audio_open into a seperate function

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: put audio parameters to their own struct

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: remove VideoState from audio_open

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: simplify audio_open, rename parameters to more explanatory names

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: try more channel count combinations for SDL_OpenAudio

This should fix ticket 1384.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: calculate audio diff threshold based on the actual settings

Signed-off-by: Marton Balint <cus@passwd.hu>
avfiltergraph: make some functions static.

They are not used outside of avfiltergraph.c
avconv: split checking for active outputs out of transcode().
avconv: split selecting input file out of transcode().
avconv: check output stream recording time before each frame returned from filters

There may be multiple frames returned, so with just one check we can
write more than requested to the output.
avidec: make scale and rate unsigned.

The specs say they are unsigned 32bit integers.
doc/avconv: add some details about the transcoding process.
mpegtsenc: use avio_open_dyn_buf(), zero pointers after freeing

Per suggestion by Michael Niedermayer.

Signed-off-by: Jindřich Makovička <makovick@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
movenc: Write chan atom for all audio tracks in mov mode movies.
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  movenc: Write chan atom for all audio tracks in mov mode movies.
  mpegtsenc: use avio_open_dyn_buf(), zero pointers after freeing
  doc/avconv: add some details about the transcoding process.
  avidec: make scale and rate unsigned.
  avconv: check output stream recording time before each frame returned from filters
  avconv: split selecting input file out of transcode().
  avconv: split checking for active outputs out of transcode().
  avfiltergraph: make some functions static.

Conflicts:
	ffmpeg.c
	libavfilter/avfiltergraph.c
	libavfilter/internal.h
	libavformat/mpegtsenc.c
	tests/ref/fate/acodec-alac
	tests/ref/fate/acodec-pcm-s16be
	tests/ref/fate/acodec-pcm-s24be
	tests/ref/fate/acodec-pcm-s32be
	tests/ref/fate/acodec-pcm-s8
	tests/ref/lavf/mov

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

* cus/stable:
  ffplay: calculate audio diff threshold based on the actual settings
  ffplay: try more channel count combinations for SDL_OpenAudio
  ffplay: simplify audio_open, rename parameters to more explanatory names
  ffplay: remove VideoState from audio_open
  ffplay: put audio parameters to their own struct
  ffplay: put audio_open into a seperate function

Merged-by: Michael Niedermayer <michaelni@gmx.at>
aacdec: Turn PS off when switching to stereo and turn it to implicit when switching to mono.
lavfi/select: 10l: llabs -> fabs after switching types.
update filtering_audio example

The filtering_audio.c example needs to be updated for the new
"abuffer" filter args.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
MANGLEd swscale x86 asm to save registers

register starvation caused gcc4.2 to fail building 32 bit shared libs
on 64 bit OS X

Signed-off-by: Michael Bradshaw <mbradshaw@sorensonmedia.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>