1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 09:02:38 +00:00

Add support for attachments in lavf demuxer.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25932 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2008-01-30 08:10:25 +00:00
parent e68bcf565f
commit fc5c09acd7

View File

@ -435,6 +435,13 @@ static void handle_stream(demuxer_t *demuxer, AVFormatContext *avfc, int i) {
demuxer->sub->sh = demuxer->s_streams[priv->sub_streams++];
break;
}
case CODEC_TYPE_ATTACHMENT:{
if (st->codec->codec_id == CODEC_ID_TTF)
demuxer_add_attachment(demuxer, st->filename,
"application/x-truetype-font",
codec->extradata, codec->extradata_size);
break;
}
default:
st->discard= AVDISCARD_ALL;
}