ffs: fix the uninitialized avpacket in ffs_adec()
[fbff.git] / ffs.h
bloba6f41773e67f7dcb47bcd4a89d9a06ba72cbfc24
1 #define FFS_AUDIO 0x1000
2 #define FFS_VIDEO 0x2000
3 #define FFS_STRIDX 0x0fff
5 void ffs_globinit(void);
7 /* ffmpeg stream */
8 struct ffs *ffs_alloc(char *path, int flags);
9 void ffs_free(struct ffs *ffs);
11 long ffs_pos(struct ffs *ffs, int diff);
12 void ffs_seek(struct ffs *ffs, long pos, int perframe);
13 void ffs_wait(struct ffs *ffs);
14 int ffs_avdiff(struct ffs *ffs, struct ffs *affs);
16 /* audio */
17 void ffs_ainfo(struct ffs *ffs, int *rate, int *bps, int *ch);
18 int ffs_adec(struct ffs *ffs, void *buf, int blen);
20 /* video */
21 void ffs_vsetup(struct ffs *ffs, float zoom, int fbm);
22 void ffs_vinfo(struct ffs *ffs, int *w, int *h);
23 int ffs_vdec(struct ffs *ffs, void **buf);