提交 5bcf1167 authored 作者: blu's avatar blu

bugfix: correctly handling video streams with extra data

上级 8318647c
...@@ -521,6 +521,10 @@ protected: ...@@ -521,6 +521,10 @@ protected:
AVStream *in_stream =NULL, *out_stream = nullptr; AVStream *in_stream =NULL, *out_stream = nullptr;
in_stream = pAVFormatInput->streams[packet.stream_index]; in_stream = pAVFormatInput->streams[packet.stream_index];
packet.stream_index = streamList[packet.stream_index]; packet.stream_index = streamList[packet.stream_index];
if(streamList[packet.stream_index] == -1) {
av_packet_unref(&packet);
continue;
}
out_stream = pAVFormatRemux->streams[packet.stream_index]; out_stream = pAVFormatRemux->streams[packet.stream_index];
/* copy packet */ /* copy packet */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论