h264_mp4toannexb_bsf: K&R formatting cosmetics
h264_mp4toannexb_bsf: factor out extradata parsing
h264_mp4toannexb_bsf: return a padded buffer

The code using the returned buffer might expect it to be
FF_INPUT_BUFFER_PADDING_SIZE padded as any other avpacket.
Document "cache" protocol

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavu/utils: silence warnings about incompatible pointer types

Signed-off-by: Paul B Mahol <onemda@gmail.com>
lavu/hash: Add support for SHA-2 512

Signed-off-by: James Almer <jamrial@gmail.com>
lavf/md5enc: Use AV_HASH_MAX_SIZE

Also increase the buffer size in write_trailer(), since 128
is not enough anymore

Signed-off-by: James Almer <jamrial@gmail.com>
lavu: Add RIPEMD hashing

Includes RIPEMD-128, RIPEMD-160, RIPEMD-256 and RIPEMD-320

Signed-off-by: James Almer <jamrial@gmail.com>
Merge branch 'crypto' of https://github.com/jamrial/FFmpeg

Merged-by: Michael Niedermayer <michaelni@gmx.at>
bitstream: K&R formatting cosmetics
bitstream: forward error values and drop few abort()
rawdec: allocate a buffer in the appropriate size in the copy case.

Otherwise the created buffer can be smaller than buf_size, which results
in buffer overreads if the original image has extra padding on every line.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavu/hash: Add support for RIPEMD

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavu/adler32: Fix doxy group definition, take two

The description if for the function, not the group.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avf: split off format register and lookup function
avf: move ff_http_match_no_proxy to network

It is only used by network protocols.
avf: move riff tags accessors where they belong
avf: move ff_write_chained to mux.c
avf: move url utility functions in a separate file
utils: fix avcodec_flush_buffers pre-reference counting compatibility

The to_free AVframe must be freed just like the other ones.
Indeed, the calling application may expect all frames to be
released.

(This regression caused use-after-free in VLC with hwaccel.)

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>