hls播放器通过测试

This commit is contained in:
xiongziliang 2020-05-17 19:06:14 +08:00
parent a4aa34e4ae
commit bab11b426e
2 changed files with 7 additions and 1 deletions

View File

@ -228,6 +228,11 @@ private:
}
break;
case H264Frame::NAL_SEI:{
//忽略SEI
break;
}
default:
VideoTrack::inputFrame(frame);
break;

View File

@ -116,7 +116,8 @@ int main(int argc, char *argv[]) {
}
AnyStorage::Ptr storage(new AnyStorage);
viedoTrack->addDelegate(std::make_shared<FrameWriterInterfaceHelper>([storage](const Frame::Ptr &frame) {
viedoTrack->addDelegate(std::make_shared<FrameWriterInterfaceHelper>([storage](const Frame::Ptr &frame_in) {
auto frame = Frame::getCacheAbleFrame(frame_in);
SDLDisplayerHelper::Instance().doTask([frame,storage]() {
auto &decoder = (*storage)["decoder"];
auto &displayer = (*storage)["displayer"];