Michael Niedermayer
0732e7b0ea
avcodec/mpeg12enc: Move high resolution thread check to before initializing threads
Cleaner solution is welcome!
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit a53fbda9dc )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Michael Niedermayer
72555f4a38
avcodec/pthread_slice: Check for malloc failure
Found-by: CSA
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
4959c4a793
avcodec/pthread_slice: Use av_malloc(z)_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Anton Khirnov
38ecc3702d
pthread: store thread contexts in AVCodecInternal instead of AVCodecContext
It's a private field, it should not be visible to callers.
Deprecate AVCodecContext.thread_opaque
12 years ago
Anton Khirnov
daa7a1d443
pthread_slice: rename ThreadContext -> SliceThreadContext
This should prevent confusion with frame threading.
12 years ago
Anton Khirnov
cc14ee03a7
lavc: split slice and frame threading functions into separate files
12 years ago