Lines Matching refs:apic
648 ID3v2ExtraMetaAPIC *apic = obj;
649 av_buffer_unref(&apic->buf);
650 av_freep(&apic->description);
667 ID3v2ExtraMetaAPIC *apic = NULL;
678 apic = &new_extra->data.apic;
709 apic->id = id;
719 apic->type = ff_id3v2_picture_types[pic_type];
722 if (decode_str(s, pb, enc, &apic->description, &taglen) < 0) {
728 apic->buf = av_buffer_alloc(taglen + AV_INPUT_BUFFER_PADDING_SIZE);
729 if (!apic->buf || !taglen || avio_read(pb, apic->buf->data, taglen) != taglen)
731 memset(apic->buf->data + taglen, 0, AV_INPUT_BUFFER_PADDING_SIZE);
737 rstrip_spaces(apic->description);
743 if (apic)
744 free_apic(apic);
1229 ID3v2ExtraMetaAPIC *apic;
1235 apic = &cur->data.apic;
1237 ret = ff_add_attached_pic(s, NULL, NULL, &apic->buf, 0);
1241 st->codecpar->codec_id = apic->id;
1246 if (apic->description[0])
1247 av_dict_set(&st->metadata, "title", apic->description, 0);
1249 av_dict_set(&st->metadata, "comment", apic->type, 0);