History

avfilter/avfilter: #if ff_tlog_link() away when empty

It is currently calling av_channel_layout_describe() unnecessarily.

Andreas Rheinhardt committed 4 years ago

Commit e10774a1 parent f4af5042 files · +6 −0Browse files

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

Unified · Split

2 files
  1. libavfilter/avfilter.c +2 −0
  2. libavfilter/internal.h +4 −0
libavfilter/avfilter.c+2−0
@@ -381,6 +381,7 @@ int avfilter_config_links(AVFilterContext *filter) · 380 unmodified lines
381 return 0;381 return 0;
382}382}
383 383
384#ifdef TRACE
384void ff_tlog_link(void *ctx, AVFilterLink *link, int end)385void ff_tlog_link(void *ctx, AVFilterLink *link, int end)
385{386{
386 if (link->type == AVMEDIA_TYPE_VIDEO) {387 if (link->type == AVMEDIA_TYPE_VIDEO) {
@@ -404,6 +405,7 @@ void ff_tlog_link(void *ctx, AVFilterLink *link, int end) · 17 unmodified lines
404 end ? "\n" : "");405 end ? "\n" : "");
405 }406 }
406}407}
408#endif
407 409
408int ff_request_frame(AVFilterLink *link)410int ff_request_frame(AVFilterLink *link)
409{411{
libavfilter/internal.h+4−0
@@ -268,7 +268,11 @@ void ff_command_queue_pop(AVFilterContext *filter); · 267 unmodified lines
268 268
269char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms);269char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms);
270 270
271#ifdef TRACE
271void ff_tlog_link(void *ctx, AVFilterLink *link, int end);272void ff_tlog_link(void *ctx, AVFilterLink *link, int end);
273#else
274#define ff_tlog_link(ctx, link, end) do { } while(0)
275#endif
272 276
273/**277/**
274 * Append a new input/output pad to the filter's list of such pads.278 * Append a new input/output pad to the filter's list of such pads.

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