From bba73f5574afd3095e017f70bca1547dd43f702f Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Wed, 8 Jan 2014 21:19:52 -0800
Subject: [PATCH] doc: remove encoder/muxer/sinks docs from ffplay- and
 ffprobe-all

ffplay and ffprobe are read-only.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
---
 doc/codecs.texi  | 4 ++++
 doc/devices.texi | 4 ++++
 doc/ffplay.texi  | 1 +
 doc/ffprobe.texi | 1 +
 doc/formats.texi | 4 ++++
 5 files changed, 14 insertions(+)

diff --git a/doc/codecs.texi b/doc/codecs.texi
index c2cd555284c..fadcf249a27 100644
--- a/doc/codecs.texi
+++ b/doc/codecs.texi
@@ -1092,5 +1092,9 @@ instead of alpha. Default is 0.
 
 @c man end CODEC OPTIONS
 
+@ifclear config-writeonly
 @include decoders.texi
+@end ifclear
+@ifclear config-readonly
 @include encoders.texi
+@end ifclear
diff --git a/doc/devices.texi b/doc/devices.texi
index 8f8b22a94b8..5e74a962d77 100644
--- a/doc/devices.texi
+++ b/doc/devices.texi
@@ -17,5 +17,9 @@ for programmatic use.
 
 @c man end DEVICE OPTIONS
 
+@ifclear config-writeonly
 @include indevs.texi
+@end ifclear
+@ifclear config-readonly
 @include outdevs.texi
+@end ifclear
diff --git a/doc/ffplay.texi b/doc/ffplay.texi
index e68a686db3d..14a406d199d 100644
--- a/doc/ffplay.texi
+++ b/doc/ffplay.texi
@@ -212,6 +212,7 @@ Seek to percentage in file corresponding to fraction of width.
 
 @include config.texi
 @ifset config-all
+@set config-readonly
 @ifset config-avutil
 @include utils.texi
 @end ifset
diff --git a/doc/ffprobe.texi b/doc/ffprobe.texi
index 75d1e72ca81..8de8956b75d 100644
--- a/doc/ffprobe.texi
+++ b/doc/ffprobe.texi
@@ -599,6 +599,7 @@ DV, GXF and AVI timecodes are available in format metadata
 
 @include config.texi
 @ifset config-all
+@set config-readonly
 @ifset config-avutil
 @include utils.texi
 @end ifset
diff --git a/doc/formats.texi b/doc/formats.texi
index b535a5f0159..ba9d2776efd 100644
--- a/doc/formats.texi
+++ b/doc/formats.texi
@@ -183,6 +183,10 @@ The exact semantics of stream specifiers is defined by the
 @code{avformat_match_stream_specifier()} function declared in the
 @file{libavformat/avformat.h} header.
 
+@ifclear config-writeonly
 @include demuxers.texi
+@end ifclear
+@ifclear config-readonly
 @include muxers.texi
+@end ifclear
 @include metadata.texi
-- 
GitLab