From 1f005df2f3ff78458f332f9bf1cf2e78b6a8e8e4 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期四, 26 九月 2019 14:43:52 +0800
Subject: [PATCH] bug fix audio codec

---
 csrc/ffmpeg/format/FormatOut.hpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/csrc/ffmpeg/format/FormatOut.hpp b/csrc/ffmpeg/format/FormatOut.hpp
index fc6fa1b..238d22f 100644
--- a/csrc/ffmpeg/format/FormatOut.hpp
+++ b/csrc/ffmpeg/format/FormatOut.hpp
@@ -35,11 +35,11 @@
 		int encode(AVPacket *pkt, AVFrame *frame);
 
 	public:
-		bool copyCodecFromIn(AVFormatContext* in);
+		bool copyCodecFromIn(std::vector<AVStream*> in);
 		bool openResource(const char *filename, const int flags);
 		bool closeResource();
 
-		bool JustWriter(AVFormatContext* in, const char *filename);
+		bool JustWriter(std::vector<AVStream*> in, const char *filename);
 		bool EncodeWriter(const char *filename);
 		bool writeFrame(AVPacket *pkt, const int64_t &frame_cnt, bool interleaved = true);
 		void adjustPTS(AVPacket *pkt, const int64_t &frame_cnt);
@@ -73,7 +73,7 @@
 		std::string 			format_name_;
 
 		// rec
-		AVFormatContext 		*in_ctx_;
+		std::vector<AVStream*>  in_streams_;
 	};
 }
 #endif
\ No newline at end of file

--
Gitblit v1.8.0