rtpproto: Check the size before reading buf[1]

I doubt that anyone ever would try to send a 1 byte packet
via the RTP protocol, but check just in case - it shouldn't
crash at least.

Signed-off-by: Martin Storsjö <martin@martin.st>
rtpproto: Allow specifying a separate rtcp port in ff_rtp_set_remote_url

A separate rtcp port can already be set when opening the rtp
protocol normally, but when doing port setup as in RTSP (where
we first need to open the local ports and pass them to the peer,
and only then receive the remote peer port numbers), we didn't
check the same url parameter as in the normal open routine.

Signed-off-by: Martin Storsjö <martin@martin.st>
avframe: have av_frame_get_side_data take const AVFrame*

Signed-off-by: Anton Khirnov <anton@khirnov.net>
rtsp: Simplify code for forming the remote peer url

Signed-off-by: Martin Storsjö <martin@martin.st>
flvdec: Fix = vs. == typo in sample rate check
flvdec: K&R formatting cosmetics
flvdec: Eliminate completely silly goto
twinvq: Add proper twinvq prefixes to identifiers
h264_sei: Remove pointless old comment
h264_sei: K&R formatting cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
h264_sei: Return meaningful values

Signed-off-by: Diego Biurrun <diego@biurrun.de>
rtmp: Add seek support

Signed-off-by: Martin Storsjö <martin@martin.st>
Give less generic names to global library option arrays
doc/print_options: Move options headers to a saner place
build: Add _Pragma macro to disable deprecated declaration warnings
Disable deprecation warnings for cases where a replacement is available
avcodec: Add output_picture_number to AVCodecParserContext

Set output_picture_number in H.264 parser.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
configure: Check for GCC diagnostic pragma support inside of functions

The actual usage of the pragma is within functions and older versions
of gcc only support the pragma outside of functions.