[libav-api] UDP stream input
nfxjfg at googlemail.com
Tue Feb 10 18:40:35 CET 2015
On Tue, 10 Feb 2015 18:29:47 +0100
Manuel Torres <manuel.torres.fernandez at gmail.com> wrote:
> Hello everyone,
> I wanted to know what the proper way to interrupt a "avformat_open_input"
> call that is stuck because it is opening an UDP URL where there is no video
> Any help will be very much appreciated.
There is none. There's only an "interrupt callback", which you can set.
libavformat will call this callback frequently, and will exit early if
you callback returns 1. It's polling, but still good enough for user
It can be set with something like this:
AVFormatContext *s = avformat_alloc_context();
s->interrupt_callback.callback = ...;
More information about the libav-api