Skip to content

Commit

Permalink
remove dead #ifed code related to FFmpeg
Browse files Browse the repository at this point in the history
FFmpeg 5.1 does not define these preprocessor MACROs.
  • Loading branch information
ulmus-scott authored and bennettpeter committed Sep 6, 2022
1 parent 06195a8 commit a3f8b69
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions mythtv/libs/libmythtv/io/mythavformatwriter.cpp
Expand Up @@ -488,10 +488,6 @@ AVStream* MythAVFormatWriter::AddVideoStream(void)
}

// AVCodecContext AVOptions:
#if FF_API_CODER_TYPE
// c->coder_type = 0;
av_opt_set_int(context, "coder", FF_CODER_TYPE_VLC, 0);
#endif
context->max_b_frames = 0;
context->slices = 8;
context->flags |= AV_CODEC_FLAG_LOOP_FILTER;
Expand Down
3 changes: 0 additions & 3 deletions mythtv/libs/libmythtv/recorders/NuppelVideoRecorder.cpp
Expand Up @@ -477,9 +477,6 @@ bool NuppelVideoRecorder::SetupAVCodecVideo(void)
av_dict_set(&opts, "rc_init_cplx", "0", 0);
m_mpaVidCtx->dct_algo = FF_DCT_AUTO;
m_mpaVidCtx->idct_algo = FF_IDCT_AUTO;
#if FF_API_PRIVATE_OPT
av_dict_set_int(&opts, "pred", FF_PRED_LEFT, 0);
#endif
if (m_videocodec.toLower() == "huffyuv" || m_videocodec.toLower() == "mjpeg")
m_mpaVidCtx->strict_std_compliance = FF_COMPLIANCE_UNOFFICIAL;
m_mpaVidCtx->thread_count = m_encodingThreadCount;
Expand Down

0 comments on commit a3f8b69

Please sign in to comment.