mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 01:22:30 +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:
parent
e68bcf565f
commit
fc5c09acd7
@ -435,6 +435,13 @@ static void handle_stream(demuxer_t *demuxer, AVFormatContext *avfc, int i) {
|
|||||||
demuxer->sub->sh = demuxer->s_streams[priv->sub_streams++];
|
demuxer->sub->sh = demuxer->s_streams[priv->sub_streams++];
|
||||||
break;
|
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:
|
default:
|
||||||
st->discard= AVDISCARD_ALL;
|
st->discard= AVDISCARD_ALL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user