Skip to content

Commit e38ba2e

Browse files
committed
Adjusting media_file_builder.cpp and frame_loader_context.h to FFmpeg 5.0
1 parent 0152ee0 commit e38ba2e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

media-file/src/main/cpp/frame_loader_context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct FrameLoaderContext {
2222
// Parameters of a video stream.
2323
AVCodecParameters *parameters;
2424
// Codec of a video stream.
25-
AVCodec *avVideoCodec;
25+
const AVCodec *avVideoCodec;
2626
// And index of a video stream in the avFormatContext.
2727
int videoStreamIndex;
2828
};

media-file/src/main/cpp/media_file_builder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ extern "C" {
1010
#include <libavformat/avformat.h>
1111
#include <libavcodec/avcodec.h>
1212
#include <libavutil/bprint.h>
13+
#include <libavutil/channel_layout.h>
1314
}
1415

1516
static jstring toJString(const char *cString) {

0 commit comments

Comments
 (0)