提交 0afd21e5 authored 作者: blu's avatar blu

init

上级 f200aaee
...@@ -336,8 +336,9 @@ protected: ...@@ -336,8 +336,9 @@ protected:
packet.duration = av_rescale_q(packet.duration, in_stream->time_base, out_stream->time_base); packet.duration = av_rescale_q(packet.duration, in_stream->time_base, out_stream->time_base);
packet.pos = -1; packet.pos = -1;
} }
if((packet.data[5] & 0x1F) == 0x05) { // TODO:
spdlog::debug("pktCnt: {}, keyframe: {:0x}", pktCnt, packet.data[5]); if(packet.data[5] == 0x65 ) {
spdlog::info("pktCnt: {}, keyframe: {:0x}", pktCnt, packet.data[5]);
if(keyPacket.buf != NULL) { if(keyPacket.buf != NULL) {
av_packet_unref(&keyPacket); av_packet_unref(&keyPacket);
av_packet_ref(&keyPacket, &packet); av_packet_ref(&keyPacket, &packet);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论