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.
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user