summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-01-28 09:48:58 +0100
committerAnton Khirnov <anton@khirnov.net>2024-02-02 15:40:35 +0100
commit70ecb8238cffd896db3e6e817f913c7a4546c791 (patch)
tree9725b9b706feff516f4b77daa2691094a4786f7b /libavdevice
parentf7b1017d7378e44daa7971fa2bf79738964d2002 (diff)
lavd: deprecate the bktr device
It implements BSD-specific support for very old analog capture cards, which are highly unlikely to be useful today. After being added in 2005, there were never any commits to it beyond compilation fixes and generic maintenance. There have also been zero trac tickets for this device, and the only related web search result I found concludes that it does not work. The code also does some unacceptable things, like messing with signal handlers and storing its state in global variables.
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/bktr.c3
-rw-r--r--libavdevice/version_major.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/libavdevice/bktr.c b/libavdevice/bktr.c
index 196637852f..864726468f 100644
--- a/libavdevice/bktr.c
+++ b/libavdevice/bktr.c
@@ -264,6 +264,9 @@ static int grab_read_header(AVFormatContext *s1)
AVRational framerate;
int ret = 0;
+ av_log(s1, AV_LOG_WARNING, "bktr input is deprecated and will be removed. "
+ "Please contact the developers if you are interested in maintaining it.\n");
+
if (!s->framerate)
switch (s->standard) {
case PAL: s->framerate = av_strdup("pal"); break;
diff --git a/libavdevice/version_major.h b/libavdevice/version_major.h
index b884fd4224..9f7b79b2ee 100644
--- a/libavdevice/version_major.h
+++ b/libavdevice/version_major.h
@@ -33,4 +33,7 @@
* the public API and may change, break or disappear at any time.
*/
+// reminder to remove the bktr device on next major bump
+#define FF_API_BKTR_DEVICE (LIBAVDEVICE_VERSION_MAJOR < 62)
+
#endif /* AVDEVICE_VERSION_MAJOR_H */