]> git.sesse.net Git - casparcg/commitdiff
[ffmpeg_producer] Remove unused flags variable in queued_seek
authorDimitry Ishenko <dimitry.ishenko@gmail.com>
Tue, 22 Nov 2016 19:52:07 +0000 (14:52 -0500)
committerDimitry Ishenko <dimitry.ishenko@gmail.com>
Fri, 27 Jan 2017 15:02:25 +0000 (10:02 -0500)
modules/ffmpeg/producer/input/input.cpp

index db902fd19903ede7b75ff7bf3b34e0091339b311..c4c3b73446824f74efa6a8f02308a6f7f7cdfbd6 100644 (file)
@@ -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);