int needs_quoting = !!src[strcspn(src, meta_chars)];
if (needs_quoting)
- av_bprint_chars(dst, '\"', 1);
+ av_bprint_chars(dst, '"', 1);
for (; *src; src++) {
if (*src == '"')
- av_bprint_chars(dst, '\"', 1);
+ av_bprint_chars(dst, '"', 1);
av_bprint_chars(dst, *src, 1);
}
if (needs_quoting)
- av_bprint_chars(dst, '\"', 1);
+ av_bprint_chars(dst, '"', 1);
return dst->str;
}
case '&' : av_bprintf(dst, "%s", "&"); break;
case '<' : av_bprintf(dst, "%s", "<"); break;
case '>' : av_bprintf(dst, "%s", ">"); break;
- case '\"': av_bprintf(dst, "%s", """); break;
+ case '"' : av_bprintf(dst, "%s", """); break;
case '\'': av_bprintf(dst, "%s", "'"); break;
default: av_bprint_chars(dst, *p, 1);
}
print_duration_time("pkt_duration_time", frame->pkt_duration, &stream->time_base);
if (frame->pkt_pos != -1) print_fmt ("pkt_pos", "%"PRId64, frame->pkt_pos);
else print_str_opt("pkt_pos", "N/A");
+ if (frame->pkt_size != -1) print_fmt ("pkt_size", "%d", av_frame_get_pkt_size(frame));
+ else print_str_opt("pkt_size", "N/A");
switch (stream->codec->codec_type) {
AVRational sar;