urlprotocol: remove unused url_interrupt_cb declaration

It is a remnant of the old interrupt callback API.
resample: Avoid off-by-1 errors in PTS calcs.

The rounding used in the PTS calculations in filter_frame() does
not actually match the number of samples output by the resampler.
This leads to off-by-1 errors in the timestamps indicating gaps and
underruns, even when the input timestamps are all contiguous.

Bug-Id: 753

Signed-off-by: Anton Khirnov <anton@khirnov.net>
lavc: make rc_qsquish a private option of mpegvideo encoders
lavc: make rc_qmod_* into private options of mpegvideo encoders
lavc: make rc_eq into private options of mpegvideo encoders
lavc: make rc_buffer_aggressivity/rc_initial_cplx into private options of mpegvideo encoders
lavc: deprecate unused me_threshold field
libvpxenc: add static-thresh private option

Currently, this option is accessed through AVCodecContext.mb_threshold,
which originally controlled reusing MB data when transcoding mpeg to
mpeg. Since the libvpx meaning is completely different from the original
mpegvideo meaning, it is better to use a separate private option for
this.
lavc: deprecate unused mb_threshold field
lavc: make border_masking into private options of mpegvideo encoders
lavc: make lmax/lmin into private options of mpegvideo encoders
vf_drawtext: Do not leak the mmapped textfile

And validate its size while at it.

CC: libav-stable@libav.org
Bug-Id: CID 1244189
vf_showinfo: Forward the av_image_get_linesize error

CC: libav-stable@libav.org
Bug-Id: CID 1087086
af_resample: check av_opt_set_dict return value

CC: libav-stable@libav.org
Bug-Id: CID 1087076
avresample: prevent theoretical division by zero

CC: libav-stable@libav.org
Bug-Id: CID 1231986
avresample: Make sure the even check does not overflow

CC: libav-stable@libav.org
Bug-Id: CID 732225
oss_audio: use a macro to simplify ioctl() error checking

Also add a note about SNDCTL_DSP_GETFMTS which may fail even if OSS is
available.

CC: libav-stable@libav.org
Bug-Id: CID 1238992
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
swscale: fix sign extensions in yuv planar conversion

Casting the left-most byte to unsigned avoids an undefined
result of the shift by 24 if bit 7 is set.

yuvPlanartouyvy_c and yuvPlanartoyuy2_c are affected.

CC: libav-stable@libav.org
Bug-Id: CID 732281 / CID 732282
rtmp: Always call rtmp_close() on rtmp_open() failure

Prevent possible memory leaks.

Connect to nginx and request a non-existent resource to
trigger the issue.

CC: libav-stable@libav.org

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Uwe L. Korn <uwelk@xhochy.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
disable -rpath-link on Solaris

The Solaris -rpath linker option parser is greedy.