[FFmpeg-cvslog] doc/writing_filters: use a more portable sed command in the walk-through

Clément Bœsch git at videolan.org
Tue Nov 18 21:12:41 CET 2014


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Tue Nov 18 21:09:38 2014 +0100| [6da12d46d3d76a275d47f228f222fdae082c289a] | committer: Clément Bœsch

doc/writing_filters: use a more portable sed command in the walk-through

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6da12d46d3d76a275d47f228f222fdae082c289a
---

 doc/writing_filters.txt |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/doc/writing_filters.txt b/doc/writing_filters.txt
index c7923e8..40935d2 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



More information about the ffmpeg-cvslog mailing list