History

Use sizeof(var) instead of sizeof(type) Commited in SoC by Vitor Sessak on 2008-04-03 19:53:18

Originally committed as revision 12753 to svn://svn.ffmpeg.org/ffmpeg/trunk

Vitor Sessak committed 18 years ago

Commit 51bf6541 parent a6f88fb1 file · +1 −1Browse files

Showing the changes to libavfilter/avfiltergraph.c (1 of 1 file). Show all

Unified · Split

libavfilter/avfiltergraph.c+1−1
@@ -76,7 +76,7 @@ static int query_formats(AVFilterGraph *graph) · 75 unmodified lines
7676 link->out_formats)) {
7777 AVFilterContext *scale;
7878 /* couldn't merge format lists. auto-insert scale filter */
79− snprintf(inst_name, 30, "auto-inserted scaler %d",
79+ snprintf(inst_name, sizeof(inst_name), "auto-inserted scaler %d",
8080 scaler_count);
8181 scale =
8282 avfilter_open(avfilter_get_by_name("scale"),inst_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