Lines Matching refs:ps2buf
270 uint8_t *ps2buf = av_malloc(len);
272 if (ps2buf) {
273 bytesread = avio_read(s->pb, ps2buf, len);
280 p = memchr(ps2buf, 'S', len - 5);
288 if (len == 980 && ps2buf[0] == 0) {
290 uint32_t startpts = AV_RB32(ps2buf + 0x0d);
291 uint32_t endpts = AV_RB32(ps2buf + 0x11);
292 uint8_t hours = ((ps2buf[0x19] >> 4) * 10) + (ps2buf[0x19] & 0x0f);
293 uint8_t mins = ((ps2buf[0x1a] >> 4) * 10) + (ps2buf[0x1a] & 0x0f);
294 uint8_t secs = ((ps2buf[0x1b] >> 4) * 10) + (ps2buf[0x1b] & 0x0f);
299 (ps2buf[0x19] & 0x0f) < 10 &&
300 (ps2buf[0x1a] & 0x0f) < 10 &&
301 (ps2buf[0x1b] & 0x0f) < 10 &&
303 } else if (len == 1018 && ps2buf[0] == 1) {
305 uint8_t hours = ((ps2buf[0x1d] >> 4) * 10) + (ps2buf[0x1d] & 0x0f);
306 uint8_t mins = ((ps2buf[0x1e] >> 4) * 10) + (ps2buf[0x1e] & 0x0f);
307 uint8_t secs = ((ps2buf[0x1f] >> 4) * 10) + (ps2buf[0x1f] & 0x0f);
312 (ps2buf[0x1d] & 0x0f) < 10 &&
313 (ps2buf[0x1e] & 0x0f) < 10 &&
314 (ps2buf[0x1f] & 0x0f) < 10);
319 av_free(ps2buf);