diff options
author | Janne Grunau <janne-libav@jannau.net> | 2012-01-01 20:24:24 +0100 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-01-02 19:20:23 +0100 |
commit | 881a5e047dc78ec9ab771817497dffec503d77ee (patch) | |
tree | 0857c45d86537a7efe7c54dcbbe6b2d956b32861 /libavcodec/mpegvideo.h | |
parent | 264808219d8be93aeda0b6ade8c64898b673f6bc (diff) | |
download | ffmpeg-881a5e047dc78ec9ab771817497dffec503d77ee.tar.gz |
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.
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r-- | libavcodec/mpegvideo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index 6483893c1a..3473e6d8f7 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -268,6 +268,7 @@ typedef struct MpegEncContext { int start_mb_y; ///< start mb_y of this thread (so current thread should process start_mb_y <= row < end_mb_y) int end_mb_y; ///< end mb_y of this thread (so current thread should process start_mb_y <= row < end_mb_y) struct MpegEncContext *thread_context[MAX_THREADS]; + int slice_context_count; ///< number of used thread_contexts /** * copy of the previous picture structure. |