From cd00ddaad46258adf2d5068bab5478aba82823d2 Mon Sep 17 00:00:00 2001 From: Dimitry Ishenko Date: Tue, 22 Nov 2016 14:52:07 -0500 Subject: [PATCH] [ffmpeg_producer] Remove unused flags variable in queued_seek --- modules/ffmpeg/producer/input/input.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/modules/ffmpeg/producer/input/input.cpp b/modules/ffmpeg/producer/input/input.cpp index db902fd19..c4c3b7344 100644 --- a/modules/ffmpeg/producer/input/input.cpp +++ b/modules/ffmpeg/producer/input/input.cpp @@ -334,19 +334,6 @@ struct input::impl : boost::noncopyable if (!thumbnail_mode_) CASPAR_LOG(debug) << print() << " Seeking: " << target; - int flags = AVSEEK_FLAG_FRAME; - if(target == 0) - { - // Fix VP6 seeking - int vid_stream_index = av_find_best_stream(format_context_.get(), AVMEDIA_TYPE_VIDEO, -1, -1, 0, 0); - if(vid_stream_index >= 0) - { - auto codec_id = format_context_->streams[vid_stream_index]->codec->codec_id; - if(codec_id == CODEC_ID_VP6A || codec_id == CODEC_ID_VP6F || codec_id == CODEC_ID_VP6) - flags = AVSEEK_FLAG_BYTE; - } - } - auto stream = format_context_->streams[default_stream_index_]; auto fps = read_fps(*format_context_, 0.0); -- 2.39.2