History

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.

Andreas Rheinhardt committed 1 year ago

Commit c82101c1 parent 4eb86951 file · +0 −6Browse files

Unified · Split

libavcodec/pthread_slice.c+0−6
@@ -115,12 +115,6 @@ av_cold int ff_slice_thread_init(AVCodecContext *avctx) · 114 unmodified lines
115115 int thread_count = avctx->thread_count;
116116 void (*mainfunc)(void *);
117117
118− // We cannot do this in the encoder init as the threads are created before
119− if (ff_codec_is_encoder(avctx->codec) &&
120− avctx->codec_id == AV_CODEC_ID_MPEG1VIDEO &&
121− avctx->height > 2800)
122− thread_count = avctx->thread_count = 1;
123−
124118 if (!thread_count) {
125119 int nb_cpus = av_cpu_count();
126120 if (avctx->height)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t