[Libav-user] timeout on av_read_frame()
luke
lclemens at gmail.com
Thu Jan 5 16:33:16 CET 2012
hell yeah! kudos to whomever added the improvement!
On Mon, Dec 26, 2011 at 1:03 PM, kamilo.libav at gmail.com [via libav-users] <
ml-node+s943685n4235453h59 at n4.nabble.com> wrote:
> 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
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://libav-users.943685.n4.nabble.com/timeout-on-av-read-frame-tp3306682p4235453.html
> To unsubscribe from timeout on av_read_frame(), click here<http://libav-users.943685.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3306682&code=bGNsZW1lbnNAZ21haWwuY29tfDMzMDY2ODJ8LTE4MTc3MTQ0OTg=>
> .
> NAML<http://libav-users.943685.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
-
-
-
-
Luke Clemens
http://clemens.bytehammer.com
--
View this message in context: http://libav-users.943685.n4.nabble.com/timeout-on-av-read-frame-tp3306682p4265918.html
Sent from the libav-users mailing list archive at Nabble.com.
More information about the Libav-user
mailing list