]> git.sesse.net Git - casparcg/blobdiff - modules/ffmpeg/ffmpeg_pipeline_backend_internal.cpp
[ffmpeg] Fixed last two frames in all clips not being displayed
[casparcg] / modules / ffmpeg / ffmpeg_pipeline_backend_internal.cpp
index feac4e0eafb6693544f713b27ea07cfdb40fd65a..663d7dee3274edc02e589ec87f0d6c1ab57bba38 100644 (file)
@@ -182,7 +182,7 @@ public:
                {
                        try
                        {
-                               audio_decoders_.push_back(spl::make_shared<audio_decoder>(*input_, core::video_format_desc(), i));
+                               audio_decoders_.push_back(spl::make_shared<audio_decoder>(*input_, core::video_format::invalid, i));
                        }
                        catch (...)
                        {
@@ -700,8 +700,7 @@ public:
        void stop() override
        {
                running_ = false;
-               try_pop_frame();
-               try_pop_frame();
+               output_frames_.set_capacity(4);
        }
 
        std::vector<AVSampleFormat> supported_sample_formats() const override