Commit bab11b42 by xiongziliang

hls播放器通过测试

parent a4aa34e4
...@@ -228,6 +228,11 @@ private: ...@@ -228,6 +228,11 @@ private:
} }
break; break;
case H264Frame::NAL_SEI:{
//忽略SEI
break;
}
default: default:
VideoTrack::inputFrame(frame); VideoTrack::inputFrame(frame);
break; break;
......
...@@ -116,7 +116,8 @@ int main(int argc, char *argv[]) { ...@@ -116,7 +116,8 @@ int main(int argc, char *argv[]) {
} }
AnyStorage::Ptr storage(new AnyStorage); 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]() { SDLDisplayerHelper::Instance().doTask([frame,storage]() {
auto &decoder = (*storage)["decoder"]; auto &decoder = (*storage)["decoder"];
auto &displayer = (*storage)["displayer"]; auto &displayer = (*storage)["displayer"];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论