mpegenc: use avctx->slices as number of slices
authorJanne Grunau <janne-libav@jannau.net>
Sun, 1 Jan 2012 19:24:24 +0000 (20:24 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Mon, 2 Jan 2012 18:20:23 +0000 (19:20 +0100)
commit881a5e047dc78ec9ab771817497dffec503d77ee
tree0857c45d86537a7efe7c54dcbbe6b2d956b32861
parent264808219d8be93aeda0b6ade8c64898b673f6bc
mpegenc: use avctx->slices as number of slices

Adds a new member to MpegEncContext to hold the number of used slice
contexts. Fixes segfaults with '-threads 17 -thread_type slice' and
fate-vsynth{1,2}-mpeg{2,4}thread{,_ilace} with --disable-pthreads.
libavcodec/h264.c
libavcodec/mpeg12.c
libavcodec/mpegvideo.c
libavcodec/mpegvideo.h
libavcodec/mpegvideo_enc.c
libavcodec/options.c
tests/codec-regression.sh