tiffenc: fix packet size calculation

Signed-off-by: Anton Khirnov <anton@khirnov.net>
flvenc: Don't over-count metadata.

Over-counting occurs if framerate is not set.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
vp9 encoder: use a decent default speed setting

Signed-off-by: Anton Khirnov <anton@khirnov.net>
vf_sab: use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avfilter/vf_spp: Use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit '49106844929b7b71ac719064d640f8aa56c89b1f'

* commit '49106844929b7b71ac719064d640f8aa56c89b1f':
  tiffenc: fix packet size calculation

Conflicts:
	libavcodec/tiffenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit '74bc9458057f07c0820c3d3264396c4c64442e47'

* commit '74bc9458057f07c0820c3d3264396c4c64442e47':
  flvenc: Don't over-count metadata.

Conflicts:
	tests/ref/lavf/flv_fmt
	tests/ref/vsynth/vsynth1-flashsv
	tests/ref/vsynth/vsynth1-flv
	tests/ref/vsynth/vsynth2-flashsv
	tests/ref/vsynth/vsynth2-flv

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit '9affa784a0743b95bde135b5acfce2183afc35d8'

* commit '9affa784a0743b95bde135b5acfce2183afc35d8':
  vp9 encoder: use a decent default speed setting

Conflicts:
	libavcodec/libvpxenc.c

See: 34e32d6464135a03da14d5b0aef1d42796939eae
Merged-by: Michael Niedermayer <michaelni@gmx.at>
presets: remove moldering iPod presets

* Some users are trying to use them for non-ancient iDevices when
  baseline profile and level 1.3/3.0 would not be required.

* "640" and "320" no longer make sense.

* Some recommended options can be viewed at:
  <https://trac.ffmpeg.org/wiki/Encode/H.264#iOS>

Signed-off-by: Lou Logan <lou@lrcd.com>
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/wavpack: fix () in macros

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/vp9: fix () in macros

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/vp8: fix () in macros

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
swresample/audioconvert: fix () in FMT_PAIR_FUNC()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/cavsdec: simplify % 512 operations

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
swscale/swscale: replace potentially slow % by &

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
AVFrame: factor out freeing the side data

Signed-off-by: Anton Khirnov <anton@khirnov.net>
dcadec: replace ldexpf with a multiplication by a constant

Signed-off-by: Anton Khirnov <anton@khirnov.net>
Merge commit '44671b57866aab8dd36715ff010e985e25baaf19'

* commit '44671b57866aab8dd36715ff010e985e25baaf19':
  AVFrame: factor out freeing the side data

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit 'f2ce63246f5c934429f9cb857a794e07624d7912'

* commit 'f2ce63246f5c934429f9cb857a794e07624d7912':
  dcadec: replace ldexpf with a multiplication by a constant

Conflicts:
	libavcodec/dcadec.c

See: 6da06ef6bbc01b713f67ffb94e7697eb2393ebe4
See: 9ccb5455ca8c63eb330abd3c2ed6a9b0ae3b755e
See: 6b88f22e895314164eef00ccbdbf11ad97a7c56f
Merged-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/dcadec: remove unsignedness from constant

POSIX gurantees >=32bit so it all fits in signed int
Also >=32bit ints are assumed througout the codebase

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