From 19b3ad6e4e9c8e195e9255d5448ab5952b1ed54e Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期二, 25 五月 2021 16:42:02 +0800 Subject: [PATCH] bug fixed gb28181 capture --- csrc/ffmpeg/format/FormatOut.hpp | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/csrc/ffmpeg/format/FormatOut.hpp b/csrc/ffmpeg/format/FormatOut.hpp index 62b5d02..2a7e280 100644 --- a/csrc/ffmpeg/format/FormatOut.hpp +++ b/csrc/ffmpeg/format/FormatOut.hpp @@ -47,7 +47,7 @@ bool endWriter(); bool writeHeader(AVDictionary **options = NULL); - bool writeFrame2(AVPacket *pkt, bool interleaved); + bool writeFrameInternal(AVPacket *pkt, bool interleaved); bool writeTrailer(); public: AVStream *getStream(); @@ -66,6 +66,8 @@ int a_idx_; AVCodecContext *enc_ctx_; + AVBSFContext *bsf_h264, *bsf_hevc; + int64_t sync_opts_; bool record_; @@ -73,7 +75,6 @@ double fps_; std::string format_name_; - AVBSFContext *bsf_h264, *bsf_hevc; // rec AVStream *in_v_stream_; AVStream *in_a_stream_; -- Gitblit v1.8.0