Skip to content

Commit

Permalink
update the code refer previous implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
JackLau1222 authored Dec 26, 2024
1 parent f171268 commit 6aead72
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bmf/c_modules/src/ffmpeg_encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1478,11 +1478,11 @@ int CFFEncoder::init_codec(int idx, AVFrame *frame) {
}
}

/**
* @deprecated codec has been deprecated since ffmpeg 5.0
* use out_stream->time_base instead of out_stream->codec->time_base.
*/
out_stream->time_base = enc_ctxs_[idx]->time_base;
#ifdef BMF_FFMPEG_VERSION
#if BMF_FFMPEG_VERSION < 50
out_stream->time_base = enc_ctxs_[idx]->time_base;
#endif
#endif
}

out_stream->time_base = enc_ctxs_[idx]->time_base;
Expand Down

0 comments on commit 6aead72

Please sign in to comment.