avdevice_register_all() is still required to register devices into lavf (this is required due to lavd being somewhat of a hack).
Showing the changes to libavfilter (3 of 28 files). Show all
Unified · Split
| @@ -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, |
| @@ -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 | ||
| @@ -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); |