36 int datatype, filetype,
t1,
t2, nb_comments;
42 if (memcmp(buf,
"SAUCE00", 7))
45 #define GET_SAUCE_META(name,size) \
46 if (avio_read(pb, buf, size) == size && buf[0]) { \
48 av_dict_set(&avctx->metadata, name, buf, 0); \
65 if (got_width && datatype && filetype) {
66 if ((datatype == 1 && filetype <=2) || (datatype == 5 && filetype == 255) || datatype == 6) {
73 }
else if (datatype == 5) {
85 if (nb_comments > 0) {
86 avio_seek(pb, start_pos - 64*nb_comments - 5, SEEK_SET);
87 if (
avio_read(pb, buf, 5) == 5 && !memcmp(buf,
"COMNT", 5)) {
89 char *str =
av_malloc(65*nb_comments + 1);
90 *fsize -= 64*nb_comments + 5;
93 for (i = 0; i < nb_comments; i++) {
96 str[65*i + 64] =
'\n';