You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/pthread_slice: Remove MPEG-1 height hack
This is no longer necessary given that the MPEG-1 encoder now adapts the size of the last slice to ensure that no slice header has an invalid slice_start_code. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -115,12 +115,6 @@ av_cold int ff_slice_thread_init(AVCodecContext *avctx)
|
|||||||
int thread_count = avctx->thread_count;
|
int thread_count = avctx->thread_count;
|
||||||
void (*mainfunc)(void *);
|
void (*mainfunc)(void *);
|
||||||
|
|
||||||
// We cannot do this in the encoder init as the threads are created before
|
|
||||||
if (ff_codec_is_encoder(avctx->codec) &&
|
|
||||||
avctx->codec_id == AV_CODEC_ID_MPEG1VIDEO &&
|
|
||||||
avctx->height > 2800)
|
|
||||||
thread_count = avctx->thread_count = 1;
|
|
||||||
|
|
||||||
if (!thread_count) {
|
if (!thread_count) {
|
||||||
int nb_cpus = av_cpu_count();
|
int nb_cpus = av_cpu_count();
|
||||||
if (avctx->height)
|
if (avctx->height)
|
||||||
|
Reference in New Issue
Block a user