Skip to content

Commit 514e70c

Browse files
author
xufuji456
committed
remove deprecated api
1 parent 90ea716 commit 514e70c

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

‎app/src/main/cpp/metadata/media_retriever_jni.cpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ RETRIEVER_FUNC(void, native_1init)
9898
return;
9999
}
100100

101-
av_register_all();
102101
avformat_network_init();
103102
}
104103

‎app/src/main/cpp/video_filter.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ int init_filters(const char *filters_descr, AVRational time_base, AVCodecContext
131131
//init player
132132
int open_input(JNIEnv *env, const char *file_name, jobject surface) {
133133
LOGI(TAG, "open file:%s\n", file_name);
134-
av_register_all();
135134
pFormatCtx = avformat_alloc_context();
136135
if (avformat_open_input(&pFormatCtx, file_name, NULL, NULL) != 0) {
137136
LOGE(TAG, "Couldn't open file:%s\n", file_name);
@@ -290,8 +289,6 @@ VIDEO_PLAYER_FUNC(jint, filter, jstring filePath, jobject surface, jint position
290289
LOGE(TAG, "Couldn't allocate video frame.");
291290
goto end;
292291
}
293-
//register filter
294-
avfilter_register_all();
295292
filter_frame = av_frame_alloc();
296293
if (filter_frame == NULL) {
297294
LOGE(TAG, "Couldn't allocate filter frame.");

0 commit comments

Comments
 (0)