summaryrefslogtreecommitdiff
path: root/src/codec/ffmpeg/avio.c
blob: 86130d88ca6477dcce3c3c9c8368bd61bc4d9b8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "avio.h"

#include "../../cache/handle.h"

s32 camu_avio_read(void *opaque, u8 *buf, s32 count)
{
    struct cch_handle *handle = (struct cch_handle *)opaque;
    return cch_handle_read(handle, buf, count);
}

s32 camu_avio_write(void *opaque, u8 *buf, s32 count)
{
    struct cch_handle *handle = (struct cch_handle *)opaque;
    return cch_handle_write(handle, buf, count);
}

s64 camu_avio_seek(void *opaque, s64 offset, s32 whence)
{
    struct cch_handle *handle = (struct cch_handle *)opaque;
    return (s64)cch_handle_seek(handle, offset, whence);
}