+#ifdef HAVE_FFMPEG_CODEC_ATTACHMENT
+ if( cc->codec_type == CODEC_TYPE_ATTACHMENT )
+ {
+ input_attachment_t *p_attachment;
+ psz_type = "attachment";
+ if( cc->codec_id == CODEC_ID_TTF )
+ {
+ p_attachment = vlc_input_attachment_New( p_sys->ic->streams[i]->filename, "application/x-truetype-font", NULL,
+ cc->extradata, (int)cc->extradata_size );
+ TAB_APPEND( p_sys->i_attachments, p_sys->attachments, p_attachment );
+ }
+ else msg_Warn( p_demux, "unsupported attachment type in ffmpeg demux" );
+ }
+ continue; /* Not a real track. nothing left to do here */
+#endif
+