Lines Matching defs:buf
265 char *buf;
267 buf = av_mallocz(MAX_URL_SIZE);
268 if (!buf)
273 r = strftime(buf, MAX_URL_SIZE, fmt, tm);
275 av_free(buf);
278 *dest = buf;
440 AVBPrint buf;
443 av_bprint_init(&buf, 0, AV_BPRINT_SIZE_UNLIMITED);
453 av_bprintf(&buf, "%s", datastring);
461 av_bprint_append_data(&buf, p, addchar_count);
465 if (!av_bprint_is_complete(&buf)) {
466 av_bprint_finalize(&buf, NULL);
469 if ((ret = av_bprint_finalize(&buf, s)) < 0)
480 AVBPrint buf;
483 av_bprint_init(&buf, 0, AV_BPRINT_SIZE_UNLIMITED);
501 av_bprintf(&buf, "%0*"PRId64, (number < 0) ? nd : nd++, number);
510 av_bprint_append_data(&buf, p, addchar_count);
513 if (!av_bprint_is_complete(&buf)) {
514 av_bprint_finalize(&buf, NULL);
517 if ((ret = av_bprint_finalize(&buf, s)) < 0)
697 static int randomize(uint8_t *buf, int len)
700 gcry_randomize(buf, len, GCRY_VERY_STRONG_RANDOM);
703 if (RAND_bytes(buf, len))
738 char buf[33];
745 ff_data_to_hex(buf, iv, sizeof(iv), 0);
746 memcpy(hls->iv_string, buf, sizeof(hls->iv_string));
1930 static int format_name(const char *buf, char **s, int index, const char *varname)
1936 orig_buf_dup = av_strdup(buf);
1940 if (!av_stristr(buf, "%v")) {
2378 char buf[BUFSIZE];
2390 read_byte = avio_read(vs->out, buf, BUFSIZE);
2392 avio_write(vs->out_single_file, buf, read_byte);