mirror of
https://github.com/asticode/go-astiav.git
synced 2026-04-23 00:07:04 +08:00
15 lines
301 B
C
15 lines
301 B
C
#include <libavformat/avio.h>
|
|
#include <stdlib.h>
|
|
|
|
int astiavInterruptCallback(void *ret)
|
|
{
|
|
return *((int*)ret);
|
|
}
|
|
|
|
AVIOInterruptCB* astiavNewInterruptCallback(int *ret)
|
|
{
|
|
AVIOInterruptCB* c = malloc(sizeof(AVIOInterruptCB));
|
|
c->callback = astiavInterruptCallback;
|
|
c->opaque = ret;
|
|
return c;
|
|
} |