ffplay: fix video_thread when no frame is returned in get_video_frame

Affects only ffplay build with avfilter disabled.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: use stream sample_aspect_ratio if available in source frames

When we are using filter chains we have to set the aspect ratio of the source
to the best known value, we use the av_guess_sample_aspect_ratio function to
determine that.

Fixes ticket 1228.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: use AVFrame::width and height instead of using codec or filter settings

Codec values may not reflect the actual frame size, and it also enables us to
simplify code in the avfilter enabled and the avfilter disabled case.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: put aspect ratio info to the VideoPicture struct

Also use av_guess_sample_aspect_ratio for determining aspect ratio of the video
frame if not using avfilter.

Signed-off-by: Marton Balint <cus@passwd.hu>
avprobe: don't print format entry name when only one was requested

This is easier to parse with automated tools.
pcmenc: set correct bitrate value

This fixes a bogus bitrate value in the header of WAV files with
alaw/ulaw audio.

Signed-off-by: Mans Rullgard <mans@mansr.com>
af_aresample: fix typo in query formats

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
af_aresample: support all swresample parameters.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avfiltergraph: use aresample not aconvert in the alternative merge code.

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg: do not warn when expecting EOF from lavfi.
lavfi/pan: add supported sample rates to avoid a crash.
swresample: set the default parameters to "none"

this way it can easily be detected when parameters have not been set

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
av_aresample: Allow changing sample format and channel layout as well

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge branch 'audio-filters' of https://github.com/ubitux/FFmpeg

* 'audio-filters' of https://github.com/ubitux/FFmpeg:
  lavfi/pan: add supported sample rates to avoid a crash.
  ffmpeg: do not warn when expecting EOF from lavfi.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg: use av_buffersrc_add_frame() for audio too

fixes a memleak

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg: automatically insert volume filter when -vol is used.

Deprecate -vol.

Inspired by asyncts auto-insert patch from Anton Khirnov.
avconv: fix behavior with -ss as an output option.

Don't return from poll_filters() immediately, there may be other frames
and/or other streams to handle.

Fixes a memleak.
rtmp: Don't assume path points to a string of nonzero length

If using the new -rtmp_app and -rtmp_playpath parameters,
one can in many cases set the main url to just rtmp://server/.
If the trailing slash is omitted, path is a string of zero length,
and using path+1 will end up reading uninitialized data.

Signed-off-by: Martin Storsjö <martin@martin.st>
aresample: check return code of swr_convert()

Issue found by comparing af_resample.c and af_aresample.c

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