From 694d1bbcdece91569106ef8db446b83b01071cf5 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 12 Feb 2007 05:22:48 +0000 Subject: add video files --- math/metadb.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'math/metadb.c') diff --git a/math/metadb.c b/math/metadb.c index ce910e3..207dd46 100644 --- a/math/metadb.c +++ b/math/metadb.c @@ -170,6 +170,9 @@ encode_meta(struct meta *mp, size_t *siz) *siz += LENGTH(mp->img); *siz += LENGTH(mp->language); *siz += LENGTH(mp->tokens); + *siz += LENGTH(mp->video); + *siz += LENGTH(mp->video_hq); + *siz += LENGTH(mp->video_lq); buf = malloc(*siz); assert(buf); @@ -200,6 +203,9 @@ encode_meta(struct meta *mp, size_t *siz) PUTSTR(buf, mp->img, blen, len); PUTSTR(buf, mp->language, blen, len); PUTSTR(buf, mp->tokens, blen, len); + PUTSTR(buf, mp->video, blen, len); + PUTSTR(buf, mp->video_hq, blen, len); + PUTSTR(buf, mp->video_lq, blen, len); return buf; } @@ -233,6 +239,9 @@ decode_meta(struct meta *mp, char *buf) GETSTR(mp->img, buf, blen); GETSTR(mp->language, buf, blen); GETSTR(mp->tokens, buf, blen); + GETSTR(mp->video, buf, blen); + GETSTR(mp->video_hq, buf, blen); + GETSTR(mp->video_lq, buf, blen); return mp; } -- cgit v1.2.3