Lines Matching defs:buf
33 static int mpl2_event_to_ass(AVBPrint *buf, const char *p)
42 if (*p == '/') av_bprintf(buf, "{\\i1}");
43 else if (*p == '\\') av_bprintf(buf, "{\\b1}");
44 else if (*p == '_') av_bprintf(buf, "{\\u1}");
51 av_bprint_chars(buf, *p, 1);
57 av_bprintf(buf, "{\\r}");
58 av_bprintf(buf, "\\N");
70 AVBPrint buf;
74 av_bprint_init(&buf, 0, AV_BPRINT_SIZE_UNLIMITED);
75 if (ptr && avpkt->size > 0 && *ptr && !mpl2_event_to_ass(&buf, ptr))
76 ret = ff_ass_add_rect(sub, buf.str, s->readorder++, 0, NULL, NULL);
77 av_bprint_finalize(&buf, NULL);