[Libav-user] timeout on av_read_frame()
kamilo.libav at gmail.com
kamilo.libav at gmail.com
Mon Dec 26 21:03:13 CET 2011
For people who also ran into this problem - using callbacks with multiple
instances is now possible with latest libav from git:
static int interrupt_cb(void *ctx)
{
// do something
return 0;
}
static const AVIOInterruptCB int_cb = { interrupt_cb, NULL };
int main(int argc, char *argv[])
{
AVFormatContext *pFormatCtx;
...
pFormatCtx = avformat_alloc_context();
pFormatCtx->interrupt_callback = int_cb;
...
avformat_open_input(&pFormatCtx, arg[1], NULL, NULL)
...
}
--
Kamil
--
View this message in context: http://libav-users.943685.n4.nabble.com/timeout-on-av-read-frame-tp3306682p4235453.html
Sent from the libav-users mailing list archive at Nabble.com.
More information about the Libav-user
mailing list