summaryrefslogtreecommitdiff
path: root/doc/writing_filters.txt
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2014-11-18 21:09:38 +0100
committerClément Bœsch <u@pkh.me>2014-11-18 21:10:40 +0100
commit6da12d46d3d76a275d47f228f222fdae082c289a (patch)
treec6164fa3ad85e9a8f17d73a43de1849fbaa25f5c /doc/writing_filters.txt
parent30d3f9769ff3abfa5fe4e09d280bd9664bcf3520 (diff)
doc/writing_filters: use a more portable sed command in the walk-through
Diffstat (limited to 'doc/writing_filters.txt')
-rw-r--r--doc/writing_filters.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/writing_filters.txt b/doc/writing_filters.txt
index c7923e884f..40935d2cfc 100644
--- a/doc/writing_filters.txt
+++ b/doc/writing_filters.txt
@@ -16,9 +16,7 @@ outputs the modified frame. The most simple way of doing this is to take a
similar filter. We'll pick edgedetect, but any other should do. You can look
for others using the `./ffmpeg -v 0 -filters|grep ' V->V '` command.
- - cp libavfilter/vf_{edgedetect,foobar}.c
- - sed -i s/edgedetect/foobar/g -i libavfilter/vf_foobar.c
- - sed -i s/EdgeDetect/Foobar/g -i libavfilter/vf_foobar.c
+ - sed 's/edgedetect/foobar/g;s/EdgeDetect/Foobar/g' libavfilter/vf_edgedetect.c > libavfilter/vf_foobar.c
- edit libavfilter/Makefile, and add an entry for "foobar" following the
pattern of the other filters.
- edit libavfilter/allfilters.c, and add an entry for "foobar" following the