flvdec: use the correct audio codec id when parsing metadata
flvdec: read audio sample size and channels metadata

This is needed in order for the FLV demuxer not to detect a codec change when
using the "flv_metadata" option.
mjpegdec: check buffer before using it

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
id3v2: allocate large enough buffer

Fixes array overread

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit 'c3d015775388882b8a122afc337ea35108f652be'

* commit 'c3d015775388882b8a122afc337ea35108f652be':
  flvdec: use the correct audio codec id when parsing metadata

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

* qatar/master:
  flvdec: read audio sample size and channels metadata

Merged-by: Michael Niedermayer <michaelni@gmx.at>
fate: add an option to generate the references

Useful to add or update fate tests.
avutil/buffer: add get_opaque

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg/avformat: factor av_guess_frame_rate() out

This will be used in ffplay

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
vda_h264_dec: fit the new API

It fixes a memory leak in this decoder caused by the API change.

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

Signed-off-by: Paul B Mahol <onemda@gmail.com>
noise_bsf: check if allocation failed

Signed-off-by: Paul B Mahol <onemda@gmail.com>
vmdav: use more unchecked bytestream2 variants where it makes sense

Signed-off-by: Paul B Mahol <onemda@gmail.com>
aacps: correct opdipd code to match spec

This fixes out of array reads

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
paf_video: make code independent of sizeof(AVFrame)

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Fix pthread_cond and pthread_mutex leaks in vp8

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavc/libtheoraenc: clarify comment about global_quality to quality conversion
doc/texi2pod.pl: skip printing chapter names if they are disabled
lavc: remove empty function

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Do not show "Estimating duration from bitrate" warning if no duration was estimated.