Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the incompatibility issue of ffmpeg 5.0 and 5.1 #136

Merged
merged 3 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bmf/c_modules/src/ffmpeg_encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,11 @@ int CFFEncoder::init_codec(int idx, AVFrame *frame) {
}
}

out_stream->codec->time_base = enc_ctxs_[idx]->time_base;
sfeiwong marked this conversation as resolved.
Show resolved Hide resolved
/**
* @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;
}

out_stream->time_base = enc_ctxs_[idx]->time_base;
Expand Down
1 change: 1 addition & 0 deletions bmf/sdk/cpp_sdk/include/bmf/sdk/filter_graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ extern "C" {
#include <libavutil/bprint.h>
#include <libswscale/swscale.h>
#include <libavutil/opt.h>
#include <libavutil/channel_layout.h>
JackLau1222 marked this conversation as resolved.
Show resolved Hide resolved
#include <libavutil/error.h>
};

Expand Down
Loading