1
0
Fork 0

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.
This commit is contained in:
Anton Khirnov 2024-01-28 09:48:58 +01:00
parent f7b1017d73
commit 70ecb8238c
3 changed files with 8 additions and 1 deletions

View File

@ -222,7 +222,8 @@ $ ffmpeg -f avfoundation -capture_raw_data true -i "zr100:none" out.dv
@section bktr
BSD video input device.
BSD video input device. Deprecated and will be removed - please contact
the developers if you are interested in maintaining it.
@subsection Options

View File

@ -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;

View File

@ -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 */