Skip to content

Commit

Permalink
Adjusting media_file_builder.cpp and frame_loader_context.h to FFmpeg…
Browse files Browse the repository at this point in the history
… 5.0
  • Loading branch information
Javernaut committed Mar 25, 2022
1 parent 0152ee0 commit e38ba2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion media-file/src/main/cpp/frame_loader_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct FrameLoaderContext {
// Parameters of a video stream.
AVCodecParameters *parameters;
// Codec of a video stream.
AVCodec *avVideoCodec;
const AVCodec *avVideoCodec;
// And index of a video stream in the avFormatContext.
int videoStreamIndex;
};
Expand Down
1 change: 1 addition & 0 deletions media-file/src/main/cpp/media_file_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ extern "C" {
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libavutil/bprint.h>
#include <libavutil/channel_layout.h>
}

static jstring toJString(const char *cString) {
Expand Down

0 comments on commit e38ba2e

Please sign in to comment.