@@ -44,9 +44,9 @@ LibavStreamer::LibavStreamer(
4444 const std::string & format_name, const std::string & codec_name,
4545 const std::string & content_type)
4646: ImageTransportImageStreamer(request, connection, node), format_context_(0 ), codec_(0 ),
47- codec_context_ (0 ), video_stream_(0 ), frame_(0 ), sws_context_(0 ),
47+ codec_context_ (0 ), video_stream_(0 ), opt_( 0 ), frame_(0 ), sws_context_(0 ),
4848 first_image_received_(false ), first_image_time_(), format_name_(format_name),
49- codec_name_(codec_name), content_type_(content_type), opt_( 0 ), io_buffer_(0 )
49+ codec_name_(codec_name), content_type_(content_type), io_buffer_(0 )
5050{
5151 bitrate_ = request.get_query_param_value_or_default <int >(" bitrate" , 100000 );
5252 qmin_ = request.get_query_param_value_or_default <int >(" qmin" , 10 );
@@ -87,7 +87,7 @@ static int dispatch_output_packet(void * opaque, uint8_t * buffer, int buffer_si
8787 return 0 ;
8888}
8989
90- void LibavStreamer::initialize (const cv::Mat & img)
90+ void LibavStreamer::initialize (const cv::Mat & /* img */ )
9191{
9292 // Load format
9393 format_context_ = avformat_alloc_context ();
@@ -274,9 +274,6 @@ void LibavStreamer::sendImage(
274274 }
275275
276276 if (got_packet) {
277- std::size_t size;
278- uint8_t * output_buf;
279-
280277 double seconds = std::chrono::duration_cast<std::chrono::duration<double >>(
281278 time - first_image_time_).count ();
282279 // Encode video at 1/0.95 to minimize delay
0 commit comments