Fix: Build with FFmpeg 6.0

Pull Request #105377
This commit is contained in:
2023-03-02 15:12:35 +01:00
committed by Gitea
parent a2d988b5da
commit e0732b640a
4 changed files with 15 additions and 4 deletions

View File

@@ -863,7 +863,7 @@ static AVStream *alloc_video_stream(FFMpegContext *context,
255);
st->avg_frame_rate = av_inv_q(c->time_base);
if (codec->capabilities & AV_CODEC_CAP_AUTO_THREADS) {
if (codec->capabilities & AV_CODEC_CAP_OTHER_THREADS) {
c->thread_count = 0;
}
else {