video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-09-26 1f005df2f3ff78458f332f9bf1cf2e78b6a8e8e4
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