History

lav*,tests: remove several register_all calls

avdevice_register_all() is still required to register devices into lavf (this is required due to lavd being somewhat of a hack).

Josh de Kock committed 8 years ago

Commit 89029bd1 parent d1221f328 files · +0 −58Browse files

Showing the changes to libavfilter (3 of 28 files). Show all

Unified · Split

3 files
  1. libavfilter/lavfutils.c +0 −2
  2. libavfilter/src_movie.c +0 −2
  3. libavfilter/tests/filtfmts.c +0 −2
libavfilter/lavfutils.c+0−2
@@ -37,8 +37,6 @@ int ff_load_image(uint8_t *data[4], int linesize[4], · 36 unmodified lines
37 37
38 av_init_packet(&pkt);38 av_init_packet(&pkt);
39 39
40 av_register_all();
41
42 iformat = av_find_input_format("image2pipe");40 iformat = av_find_input_format("image2pipe");
43 if ((ret = avformat_open_input(&format_ctx, filename, iformat, NULL)) < 0) {41 if ((ret = avformat_open_input(&format_ctx, filename, iformat, NULL)) < 0) {
44 av_log(log_ctx, AV_LOG_ERROR,42 av_log(log_ctx, AV_LOG_ERROR,
libavfilter/src_movie.c+0−2
@@ -239,8 +239,6 @@ static av_cold int movie_common_init(AVFilterContext *ctx) · 238 unmodified lines
239 return AVERROR_PATCHWELCOME;239 return AVERROR_PATCHWELCOME;
240 }240 }
241 241
242 av_register_all();
243
244 // Try to find the movie format (container)242 // Try to find the movie format (container)
245 iformat = movie->format_name ? av_find_input_format(movie->format_name) : NULL;243 iformat = movie->format_name ? av_find_input_format(movie->format_name) : NULL;
246 244
libavfilter/tests/filtfmts.c+0−2
@@ -97,8 +97,6 @@ int main(int argc, char **argv) · 96 unmodified lines
97 if (!graph_ctx)97 if (!graph_ctx)
98 return 1;98 return 1;
99 99
100 avfilter_register_all();
101
102 /* get a corresponding filter and open it */100 /* get a corresponding filter and open it */
103 if (!(filter = avfilter_get_by_name(filter_name))) {101 if (!(filter = avfilter_get_by_name(filter_name))) {
104 fprintf(stderr, "Unrecognized filter with name '%s'\n", filter_name);102 fprintf(stderr, "Unrecognized filter with name '%s'\n", filter_name);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t