lavr: add a function for checking whether AVAudioResampleContext is open
lavr: return an error if a avresample_open() is called on an open context
Merge commit '7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731'

* commit '7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731':
  lavr: add a function for checking whether AVAudioResampleContext is open

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

* qatar/master:
  lavr: return an error if a avresample_open() is called on an open context

Merged-by: Michael Niedermayer <michaelni@gmx.at>
swresample: factorize clear_context() out

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avformat/mux: support shifting timestamps so they start at 0

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avformat/movenc: shift positive timestamps to 0 if edit lists cannot be used

Fix handling of timestamps which start  far away from 0

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Support MPEG-2 video mov files with sample description mp2v.
Support old qclp-in-mov files that do not store bytes_per_frame in the header.

Fixes ticket #2649.
configure: Revert commit 5176e9651bda5182df008a1226e2484fdd809985

This fixes cpunop detection and unbreaks NASM assembly

Signed-off-by: Dave Yeo <daveryeo@telus.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avutil/pixdesc: set bayer pixfmt descriptor flags

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/rawdec: for 16-bit pix fmts, shift pixels when bits_per_coded_sample < 16

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale: bayer to rgb24 & yv12 colorspace converters

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Issue-#3407 : Enhance precision for double to string conversion, useful for GEOTIFF double values

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avdevice/v4l2: add V4L2_PIX_FMT_SRGGB8
Add more Bayer colour spaces to the video4linux2 device wrapper.
hevc: Drop unnecessary shifts in deblocking_filter_CTB

beta_offset is pre-multiplied by 2.
hevc: Do not right shift a negative value in get_pcm
hevc: Do not left shift a negative value in hevc_loop_filter_chroma
configure: disable cpunop if the check fails

Moving cpunop from the HAVE_LIST to the ARCH_EXT_LIST_X86 has the side
effect of enabling it. The semantics of the check have to be changed
from enable if successful to disable if unsuccessful. This was missing
in 2b0bb69997c2416e74f41aa1400ce983bf8775c0 causing build errors with
nasm.