[FFmpeg-cvslog] graph2dot: Use the fallback getopt implementation if needed
Martin Storsjö
git at videolan.org
Wed Aug 29 18:09:27 CEST 2012
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Tue Aug 28 19:35:39 2012 +0300| [09d5e02ab0448acedc3d516595eebd408eebf679] | committer: Martin Storsjö
graph2dot: Use the fallback getopt implementation if needed
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=09d5e02ab0448acedc3d516595eebd408eebf679
---
tools/graph2dot.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tools/graph2dot.c b/tools/graph2dot.c
index 51a1ab1..e7f487d 100644
--- a/tools/graph2dot.c
+++ b/tools/graph2dot.c
@@ -18,7 +18,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config.h"
+#if HAVE_UNISTD_H
#include <unistd.h> /* getopt */
+#endif
#include <stdio.h>
#include <string.h>
@@ -27,6 +30,10 @@
#include "libavutil/audioconvert.h"
#include "libavfilter/avfiltergraph.h"
+#if !HAVE_GETOPT
+#include "compat/getopt.c"
+#endif
+
static void usage(void)
{
printf("Convert a libavfilter graph to a dot file\n");
More information about the ffmpeg-cvslog
mailing list