Lines Matching defs:buf_size
71 static int wtvfile_read_packet(void *opaque, uint8_t *buf, int buf_size)
82 buf_size = FFMIN(buf_size, wf->length - wf->position);
83 while(nread < buf_size) {
85 int read_request = FFMIN(buf_size - nread, remaining_in_sector);
251 * @param buf_size directory buffer size
256 static AVIOContext * wtvfile_open2(AVFormatContext *s, const uint8_t *buf, int buf_size, const uint8_t *filename, int filename_size)
258 const uint8_t *buf_end = buf + buf_size;
301 #define wtvfile_open(s, buf, buf_size, filename) \
302 wtvfile_open2(s, buf, buf_size, filename, sizeof(filename))
388 static int filetime_to_iso8601(char *buf, int buf_size, int64_t value)
395 if (!strftime(buf, buf_size, "%Y-%m-%d %H:%M:%S", tm))
404 static int crazytime_to_iso8601(char *buf, int buf_size, int64_t value)
411 if (!strftime(buf, buf_size, "%Y-%m-%d %H:%M:%S", tm))
420 static int oledate_to_iso8601(char *buf, int buf_size, int64_t value)
427 if (!strftime(buf, buf_size, "%Y-%m-%d %H:%M:%S", tm))
462 int buf_size;
470 buf_size = FFMAX(2*length, LEN_PRETTY_GUID) + 1;
471 buf = av_malloc(buf_size);
476 snprintf(buf, buf_size, "%u", avio_rl32(pb));
478 avio_get_str16le(pb, length, buf, buf_size);
489 if (filetime_to_iso8601(buf, buf_size, num) < 0) {
495 if (crazytime_to_iso8601(buf, buf_size, num) < 0) {
500 if (oledate_to_iso8601(buf, buf_size, num) < 0 ) {
505 snprintf(buf, buf_size, "%f", av_int2double(num));
507 snprintf(buf, buf_size, "%"PRIi64, num);
509 snprintf(buf, buf_size, "%u", avio_rl16(pb));
513 snprintf(buf, buf_size, PRI_PRETTY_GUID, ARG_PRETTY_GUID(guid));
845 int buf_size;
855 buf_size = FFMIN(len - consumed, sizeof(buf));
856 avio_read(pb, buf, buf_size);
857 consumed += buf_size;
858 ff_parse_mpeg2_descriptor(s, st, 0, &pbuf, buf + buf_size, NULL, 0, 0, NULL);