#ifndef LIBMPEG3_H
#define LIBMPEG3_H
+#ifdef HAVE_LIBZMPEG
/* for quicktime build */
#define MAXFRAMESAMPLES 65536
}
static inline void complete_path(char *full_path, char *path) {
- char dir[zmpeg3_t::STRLEN];
+ char dir[STRLEN];
if( path[0] != '/' && getcwd(dir, sizeof(dir)) )
- sprintf(full_path, "%s/%s", dir, path);
+ snprintf(full_path, STRLEN, "%s/%s", dir, path);
else
strcpy(full_path, path);
}
}
static inline void joinpath(char *path, char *dir, char *filename) {
- sprintf(path, "%s/%s", dir, filename);
+ snprintf(path, STRLEN, "%s/%s", dir, filename);
}
static inline int64_t path_total_bytes(char *path) {
}
#endif
#endif
+#endif