X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=h264encode.h;h=7a10d927ca84f94a7f8abc74fb7c6c7910b2e8d0;hb=4ec330853ee13b230f089253fedd20b49229e42b;hp=48dd3291df457b1c2b8dbb7f3cdf6c380b848cc6;hpb=75efc41d8a9d350edcbcf0aaa03d5bbb5e61c0f5;p=nageru diff --git a/h264encode.h b/h264encode.h index 48dd329..7a10d92 100644 --- a/h264encode.h +++ b/h264encode.h @@ -52,7 +52,7 @@ class QSurface; class H264Encoder { public: - H264Encoder(QSurface *surface, int width, int height, const char *output_filename, HTTPD *httpd); + H264Encoder(QSurface *surface, int width, int height, HTTPD *httpd); ~H264Encoder(); //void add_frame(FrameAllocator::Frame frame, GLsync fence); @@ -109,9 +109,7 @@ private: std::map> pending_audio_frames; // under frame_queue_mutex QSurface *surface; - AVFormatContext *avctx; - AVStream *avstream_video; - AVStream *avstream_audio; + AVCodecContext *context_audio; HTTPD *httpd; };