avfilter/vf_spp: fix overflows with depth > 8

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avfilter/vf_boxblur: factor rounder offset out

3322 -> 3204 cycles

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avfilter/vf_boxblur: avoid one addition per line

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avfilter/vf_spp: Fix overflow in 8bit store slice

Fixes regression with
ffplay -f lavfi -i testsrc=640x480  -vf format=gray,boxblur=20:10,geq="'mod(lum(X,Y),16)*15'",boxblur=10,geq="'abs(mod(lum(X,Y),15)-7)*32'",spp=4:40

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avfilter/vf_boxblur: add gbrp pixfmt

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avfilter/vf_boxblur: Support 10bit planar formats
avformat/mpegenc: Use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avformat/mpegtsenc: Use av_freep() to avoid leaving stale pointers in memory

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