Overview

Request 3849 (accepted)

- Update to version 19.0.3:
* rtmp-services: Update Twitch ingests
* librtmp: Fix build error with ENODATA on FreeBSD
* rtmp-services: Rename Beam to Mixer
* UI/installer: Specify "source" in plugins section
* UI/installer: Fix broken realsense plugin install locations
* UI/installer: Update installer VC redist download link
* win-wasapi: Fix potential null pointer deref in enumeration
* UI: Look for plugins in ~/Library/Application Support/obs-studio/plugins/
* libobs/plugins/UI: Suppress -Wimplicit-fallthrough introduced by GCC 7
* win-capture: Limit OpenProcess flags to prevent A/C issues
* deps/media-playback: Output av_read_frame error string
* deps/media-playback: Start decoding regardless of keyframe
* obs-ffmpeg: Add network buffering property
* deps/media-playback: Call stop callback on failure
* deps/media-playback: Fix lockup issues
* Revert "rtmp-services: Rename Beam to Mixer"
* rtmp-services: Add new twitch.tv ingests
* UI/updater: Fix incorrect path in portable mode
* deps/media-playback: Add timeout when waiting for frames
* deps/media-playback: Fix AV_NOPTS_VALUE being used as timestamp
* deps/media-playback: Fix playback reset fail after stop
* obs-ffmpeg: Don't preload media frames if set to pause on end
* win-capture/graphics-hook: Fix D3D10/D3D11 detection
* UI: Ignore first 2.5 seconds of bandwidth test
* UI: Initialize Stats window values after OBSInit/reset
* win-capture: Add IDXGISwapChain1::Present1 hook support
* win-capture: Use PROCESS_QUERY_INFORMATION for game capture
* obs-ffmpeg: Do not precache if set to close when inactive
* UI: Use QT_TO_UTF8 with name dialog

Submit package home:boombatow...es:Multimedia / obs-studio to package Multimedia / obs-studio

obs-studio.changes Changed
x
 
1
@@ -1,4 +1,47 @@
2
 -------------------------------------------------------------------
3
+Thu Jun 22 19:41:10 UTC 2017 - jimmy@boombatower.com
4
+
5
+- Update to version 19.0.3:
6
+  * rtmp-services: Update Twitch ingests
7
+  * librtmp: Fix build error with ENODATA on FreeBSD
8
+  * rtmp-services: Rename Beam to Mixer
9
+  * UI/installer: Specify "source" in plugins section
10
+  * UI/installer: Fix broken realsense plugin install locations
11
+  * UI/installer: Update installer VC redist download link
12
+  * win-wasapi: Fix potential null pointer deref in enumeration
13
+  * UI: Look for plugins in ~/Library/Application Support/obs-studio/plugins/
14
+  * libobs/plugins/UI: Suppress -Wimplicit-fallthrough introduced by GCC 7
15
+  * win-capture: Limit OpenProcess flags to prevent A/C issues
16
+  * deps/media-playback: Output av_read_frame error string
17
+  * deps/media-playback: Start decoding regardless of keyframe
18
+  * obs-ffmpeg: Add network buffering property
19
+  * deps/media-playback: Call stop callback on failure
20
+  * deps/media-playback: Fix lockup issues
21
+  * Revert "rtmp-services: Rename Beam to Mixer"
22
+  * rtmp-services: Add new twitch.tv ingests
23
+  * UI/updater: Fix incorrect path in portable mode
24
+  * deps/media-playback: Add timeout when waiting for frames
25
+  * deps/media-playback: Fix AV_NOPTS_VALUE being used as timestamp
26
+  * deps/media-playback: Fix playback reset fail after stop
27
+  * obs-ffmpeg: Don't preload media frames if set to pause on end
28
+  * win-capture/graphics-hook: Fix D3D10/D3D11 detection
29
+  * UI: Ignore first 2.5 seconds of bandwidth test
30
+  * UI: Initialize Stats window values after OBSInit/reset
31
+  * win-capture: Add IDXGISwapChain1::Present1 hook support
32
+  * win-capture: Use PROCESS_QUERY_INFORMATION for game capture
33
+  * obs-ffmpeg: Do not precache if set to close when inactive
34
+  * UI: Use QT_TO_UTF8 with name dialog
35
+  * libobs-d3d11: Fix shader const array size miscalculation
36
+  * UI: Preserve source if audio settings device changed
37
+  * libobs: Update version to 19.0.3
38
+  * UI: Set error mode to SEM_FAILCRITICALERRORS
39
+  * ffmpeg-mux: Set error mode to SEM_FAILCRITICALERRORS
40
+  * get-graphics-offsets: Set error mode to SEM_FAILCRITICALERRORS
41
+  * inject-helper: Set error mode to SEM_FAILCRITICALERRORS
42
+  * enc-amf: Version 2.1.6
43
+  * obs-ffmpeg: Remove "Buffering (MS)" property
44
+
45
+-------------------------------------------------------------------
46
 Wed Jun 14 22:47:57 UTC 2017 - jimmy@boombatower.com
47
 
48
 - Update to version 19.0.2:
49
obs-studio.spec Changed
8
 
1
@@ -1,5 +1,5 @@
2
 Name:           obs-studio
3
-Version:        19.0.2
4
+Version:        19.0.3
5
 Release:        0
6
 Summary:        A recording/broadcasting program
7
 
8
_service Changed
10
 
1
@@ -1,7 +1,7 @@
2
 <services>
3
   <service name="tar_scm" mode="disabled">
4
     <param name="versionformat">@PARENT_TAG@</param>
5
-    <param name="revision">refs/tags/19.0.2</param>
6
+    <param name="revision">refs/tags/19.0.3</param>
7
     <param name="url">git://github.com/jp9000/obs-studio.git</param>
8
     <param name="scm">git</param>
9
     <param name="changesgenerate">enable</param>
10
_servicedata Changed
9
 
1
@@ -1,6 +1,6 @@
2
 <servicedata>
3
   <service name="tar_scm">
4
     <param name="url">git://github.com/jp9000/obs-studio.git</param>
5
-    <param name="changesrevision">870bf6b6fca2940f8cf37f10339564d393ac41bf</param>
6
+    <param name="changesrevision">d295ad3ed3eafc7550ffa4280abcf116ec9bad14</param>
7
   </service>
8
 </servicedata>
9
obs-studio-19.0.2.tar.xz/UI/installer/mp-installer.nsi -> obs-studio-19.0.3.tar.xz/UI/installer/mp-installer.nsi Changed
39
 
1
@@ -105,7 +105,7 @@
2
    vs2013Missing:
3
        MessageBox MB_YESNO|MB_ICONEXCLAMATION "Your system is missing runtime components that ${APPNAME} requires. Please make sure to install both vcredist_x64 and vcredist_x86. Would you like to download them?" IDYES vs2013true IDNO vs2013false
4
        vs2013true:
5
-           ExecShell "open" "http://www.microsoft.com/en-us/download/details.aspx?id=40784"
6
+           ExecShell "open" "https://obsproject.com/visual-studio-2013-runtimes"
7
        vs2013false:
8
        Quit
9
    vs2013OK:
10
@@ -273,7 +273,7 @@
11
 
12
 !ifdef FULL
13
 SectionGroup /e "Plugins" SecPlugins
14
-   Section "Browser plugin" SecPlugins_Browser
15
+   Section "Browser Source" SecPlugins_Browser
16
        ; Set Section properties
17
        SetOverwrite on
18
        AllowSkipFiles off
19
@@ -292,16 +292,16 @@
20
    SectionEnd
21
 
22
    !ifdef REALSENSE_PLUGIN
23
-   Section /o "Realsense plugin" SecPlugins_Realsense
24
+   Section /o "Realsense Source" SecPlugins_Realsense
25
        SetOverwrite on
26
        AllowSkipFiles off
27
        SetShellVarContext all
28
 
29
        SetOutPath "$INSTDIR\obs-plugins"
30
-       File /r "new\realsense\32bit"
31
+       File /r "new\realsense\obs-plugins\32bit"
32
 
33
        ${if} ${RunningX64}
34
-           File /r "new\realsense\64bit"
35
+           File /r "new\realsense\obs-plugins\64bit"
36
        ${endif}
37
 
38
        SetOutPath "$INSTDIR\data\obs-plugins"
39
obs-studio-19.0.2.tar.xz/UI/obs-app.cpp -> obs-studio-19.0.3.tar.xz/UI/obs-app.cpp Changed
17
 
1
@@ -164,6 +164,7 @@
2
            case Qt::Key_Return:
3
                if (dialog && pressed)
4
                    return false;
5
+               /* Falls through. */
6
            default:
7
                hotkey.key = obs_key_from_virtual_key(
8
                    event->nativeVirtualKey());
9
@@ -1835,6 +1836,7 @@
10
 #endif
11
 
12
 #ifdef _WIN32
13
+   SetErrorMode(SEM_FAILCRITICALERRORS);
14
    load_debug_privilege();
15
    base_set_crash_handler(main_crash_handler, nullptr);
16
 #endif
17
obs-studio-19.0.2.tar.xz/UI/win-update/updater/updater.cpp -> obs-studio-19.0.3.tar.xz/UI/win-update/updater/updater.cpp Changed
15
 
1
@@ -998,10 +998,11 @@
2
        }
3
 
4
        StringCbCopy(lpAppDataPath, sizeof(lpAppDataPath), pOut);
5
-       StringCbCat(lpAppDataPath, sizeof(lpAppDataPath),
6
-               L"\\obs-studio");
7
    }
8
 
9
+   StringCbCat(lpAppDataPath, sizeof(lpAppDataPath),
10
+           L"\\obs-studio");
11
+
12
    /* ------------------------------------- *
13
     * Get download path                     */
14
 
15
obs-studio-19.0.2.tar.xz/UI/window-basic-auto-config-test.cpp -> obs-studio-19.0.3.tar.xz/UI/window-basic-auto-config-test.cpp Changed
31
 
1
@@ -356,6 +356,19 @@
2
                Q_ARG(QString, QTStr(TEST_BW_SERVER)
3
                    .arg(server.name.c_str())));
4
 
5
+       /* ignore first 2.5 seconds due to possible buffering skewing
6
+        * the result */
7
+       cv.wait_for(ul, chrono::milliseconds(2500));
8
+       if (stopped)
9
+           continue;
10
+       if (cancel) {
11
+           ul.unlock();
12
+           obs_output_force_stop(output);
13
+           return;
14
+       }
15
+
16
+       /* continue test */
17
+       int start_bytes = (int)obs_output_get_total_bytes(output);
18
        uint64_t t_start = os_gettime_ns();
19
 
20
        cv.wait_for(ul, chrono::seconds(10));
21
@@ -372,7 +385,8 @@
22
 
23
        uint64_t total_time = os_gettime_ns() - t_start;
24
 
25
-       int total_bytes = (int)obs_output_get_total_bytes(output);
26
+       int total_bytes = (int)obs_output_get_total_bytes(output) -
27
+           start_bytes;
28
        uint64_t bitrate = (uint64_t)total_bytes * 8
29
            * 1000000000 / total_time / 1000;
30
 
31
obs-studio-19.0.2.tar.xz/UI/window-basic-main.cpp -> obs-studio-19.0.3.tar.xz/UI/window-basic-main.cpp Changed
74
 
1
@@ -115,6 +115,11 @@
2
    string path = (char*)base_module_dir;
3
 #if defined(__APPLE__)
4
    obs_add_module_path((path + "/bin").c_str(), (path + "/data").c_str());
5
+
6
+   BPtr<char> config_bin = os_get_config_path_ptr("obs-studio/plugins/%module%/bin");
7
+   BPtr<char> config_data = os_get_config_path_ptr("obs-studio/plugins/%module%/data");
8
+   obs_add_module_path(config_bin, config_data);
9
+
10
 #elif ARCH_BITS == 64
11
    obs_add_module_path((path + "/bin/64bit").c_str(),
12
            (path + "/data").c_str());
13
@@ -1458,6 +1463,8 @@
14
 
15
    if (config_get_bool(basicConfig, "General", "OpenStatsOnStartup"))
16
        on_stats_triggered();
17
+
18
+   OBSBasicStats::InitializeValues();
19
 }
20
 
21
 void OBSBasic::InitHotkeys()
22
@@ -2767,6 +2774,8 @@
23
            ResizeProgram(ovi.base_width, ovi.base_height);
24
    }
25
 
26
+   OBSBasicStats::InitializeValues();
27
+
28
    return ret;
29
 }
30
 
31
@@ -2792,26 +2801,30 @@
32
 void OBSBasic::ResetAudioDevice(const char *sourceId, const char *deviceId,
33
        const char *deviceDesc, int channel)
34
 {
35
+   bool disable = deviceId && strcmp(deviceId, "disabled") == 0;
36
    obs_source_t *source;
37
    obs_data_t *settings;
38
-   bool same = false;
39
 
40
    source = obs_get_output_source(channel);
41
    if (source) {
42
-       settings = obs_source_get_settings(source);
43
-       const char *curId = obs_data_get_string(settings, "device_id");
44
-
45
-       same = (strcmp(curId, deviceId) == 0);
46
+       if (disable) {
47
+           obs_set_output_source(channel, nullptr);
48
+       } else {
49
+           settings = obs_source_get_settings(source);
50
+           const char *oldId = obs_data_get_string(settings,
51
+                   "device_id");
52
+           if (strcmp(oldId, deviceId) != 0) {
53
+               obs_data_set_string(settings, "device_id",
54
+                       deviceId);
55
+               obs_source_update(source, settings);
56
+           }
57
+           obs_data_release(settings);
58
+       }
59
 
60
-       obs_data_release(settings);
61
        obs_source_release(source);
62
-   }
63
-
64
-   if (!same)
65
-       obs_set_output_source(channel, nullptr);
66
 
67
-   if (!same && strcmp(deviceId, "disabled") != 0) {
68
-       obs_data_t *settings = obs_data_create();
69
+   } else if (!disable) {
70
+       settings = obs_data_create();
71
        obs_data_set_string(settings, "device_id", deviceId);
72
        source = obs_source_create(sourceId, deviceDesc, settings,
73
                nullptr);
74
obs-studio-19.0.2.tar.xz/UI/window-basic-stats.cpp -> obs-studio-19.0.3.tar.xz/UI/window-basic-stats.cpp Changed
17
 
1
@@ -217,6 +217,15 @@
2
 static uint32_t first_rendered = 0xFFFFFFFF;
3
 static uint32_t first_lagged = 0xFFFFFFFF;
4
 
5
+void OBSBasicStats::InitializeValues()
6
+{
7
+   video_t *video = obs_get_video();
8
+   first_encoded  = video_output_get_total_frames(video);
9
+   first_skipped  = video_output_get_skipped_frames(video);
10
+   first_rendered = obs_get_total_frames();
11
+   first_lagged   = obs_get_lagged_frames();
12
+}
13
+
14
 void OBSBasicStats::Update()
15
 {
16
    OBSBasic *main = reinterpret_cast<OBSBasic*>(App()->GetMainWindow());
17
obs-studio-19.0.2.tar.xz/UI/window-basic-stats.hpp -> obs-studio-19.0.3.tar.xz/UI/window-basic-stats.hpp Changed
8
 
1
@@ -57,4 +57,6 @@
2
 public:
3
    OBSBasicStats(QWidget *parent = nullptr);
4
    ~OBSBasicStats();
5
+
6
+   static void InitializeValues();
7
 };
8
obs-studio-19.0.2.tar.xz/UI/window-namedialog.cpp -> obs-studio-19.0.3.tar.xz/UI/window-namedialog.cpp Changed
18
 
1
@@ -16,6 +16,7 @@
2
 ******************************************************************************/
3
 
4
 #include "window-namedialog.hpp"
5
+#include "qt-wrappers.hpp"
6
 #include "ui_NameDialog.h"
7
 #include "obs-app.hpp"
8
 
9
@@ -46,7 +47,7 @@
10
 
11
    bool accepted = (dialog.exec() == DialogCode::Accepted);
12
    if (accepted) {
13
-       str = dialog.ui->userText->text().toStdString();
14
+       str = QT_TO_UTF8(dialog.ui->userText->text());
15
 
16
        while (str.size() && IsWhitespace(str.back()))
17
            str.erase(str.end() - 1);
18
obs-studio-19.0.2.tar.xz/deps/media-playback/media-playback/decode.c -> obs-studio-19.0.3.tar.xz/deps/media-playback/media-playback/decode.c Changed
45
 
1
@@ -279,18 +279,6 @@
2
            }
3
        }
4
 
5
-       if (!d->audio && d->m->is_network && !d->got_first_keyframe) {
6
-           if (d->pkt.flags & AV_PKT_FLAG_KEY) {
7
-               d->got_first_keyframe = true;
8
-           } else {
9
-               av_packet_unref(&d->orig_pkt);
10
-               av_init_packet(&d->orig_pkt);
11
-               av_init_packet(&d->pkt);
12
-               d->packet_pending = false;
13
-               return true;
14
-           }
15
-       }
16
-
17
        ret = decode_packet(d, &got_frame);
18
 
19
        if (!got_frame && ret == 0) {
20
@@ -332,9 +320,13 @@
21
    if (d->frame_ready) {
22
        int64_t last_pts = d->frame_pts;
23
 
24
-       d->frame_pts = av_rescale_q(d->frame->best_effort_timestamp,
25
-               d->stream->time_base,
26
-               (AVRational){1, 1000000000});
27
+       if (d->frame->best_effort_timestamp == AV_NOPTS_VALUE)
28
+           d->frame_pts = d->next_pts;
29
+       else
30
+           d->frame_pts = av_rescale_q(
31
+                   d->frame->best_effort_timestamp,
32
+                   d->stream->time_base,
33
+                   (AVRational){1, 1000000000});
34
 
35
        int64_t duration = d->frame->pkt_duration;
36
        if (!duration)
37
@@ -343,6 +335,7 @@
38
            duration = av_rescale_q(duration,
39
                    d->stream->time_base,
40
                    (AVRational){1, 1000000000});
41
+
42
        d->last_duration = duration;
43
        d->next_pts = d->frame_pts + duration;
44
    }
45
obs-studio-19.0.2.tar.xz/deps/media-playback/media-playback/media.c -> obs-studio-19.0.3.tar.xz/deps/media-playback/media-playback/media.c Changed
230
 
1
@@ -92,7 +92,8 @@
2
    int ret = av_read_frame(media->fmt, &pkt);
3
    if (ret < 0) {
4
        if (ret != AVERROR_EOF)
5
-           blog(LOG_WARNING, "MP: av_read_frame failed: %d", ret);
6
+           blog(LOG_WARNING, "MP: av_read_frame failed: %s (%d)",
7
+                   av_err2str(ret), ret);
8
        return ret;
9
    }
10
 
11
@@ -356,6 +357,13 @@
12
    frame->height = f->height;
13
    frame->flip = flip;
14
 
15
+   if (m->is_network && !d->got_first_keyframe) {
16
+       if (!f->key_frame)
17
+           return;
18
+
19
+       d->got_first_keyframe = true;
20
+   }
21
+
22
    if (preload)
23
        m->v_preload_cb(m->opaque, frame);
24
    else
25
@@ -419,15 +427,15 @@
26
    m->eof = false;
27
    m->base_ts += next_ts;
28
 
29
-   if (!mp_media_prepare_frames(m))
30
-       return false;
31
-
32
    pthread_mutex_lock(&m->mutex);
33
    stopping = m->stopping;
34
    active = m->active;
35
    m->stopping = false;
36
    pthread_mutex_unlock(&m->mutex);
37
 
38
+   if (!mp_media_prepare_frames(m))
39
+       return false;
40
+
41
    if (active) {
42
        if (!m->play_sys_ts)
43
            m->play_sys_ts = (int64_t)os_gettime_ns();
44
@@ -447,12 +455,25 @@
45
    return true;
46
 }
47
 
48
-static inline void mp_media_sleepto(mp_media_t *m)
49
+static inline bool mp_media_sleepto(mp_media_t *m)
50
 {
51
-   if (!m->next_ns)
52
+   bool timeout = false;
53
+
54
+   if (!m->next_ns) {
55
        m->next_ns = os_gettime_ns();
56
-   else
57
-       os_sleepto_ns(m->next_ns);
58
+   } else {
59
+       uint64_t t = os_gettime_ns();
60
+       const uint64_t timeout_ns = 200000000;
61
+
62
+       if (m->next_ns > t && (m->next_ns - t) > timeout_ns) {
63
+           os_sleepto_ns(t + timeout_ns);
64
+           timeout = true;
65
+       } else {
66
+           os_sleepto_ns(m->next_ns);
67
+       }
68
+   }
69
+
70
+   return timeout;
71
 }
72
 
73
 static inline bool mp_media_eof(mp_media_t *m)
74
@@ -478,6 +499,23 @@
75
    return eof;
76
 }
77
 
78
+static int interrupt_callback(void *data)
79
+{
80
+   mp_media_t *m = data;
81
+   bool stop = false;
82
+   uint64_t ts = os_gettime_ns();
83
+
84
+   if ((ts - m->interrupt_poll_ts) > 20000000) {
85
+       pthread_mutex_lock(&m->mutex);
86
+       stop = m->kill || m->stopping;
87
+       pthread_mutex_unlock(&m->mutex);
88
+
89
+       m->interrupt_poll_ts = ts;
90
+   }
91
+
92
+   return stop;
93
+}
94
+
95
 static bool init_avformat(mp_media_t *m)
96
 {
97
    AVInputFormat *format = NULL;
98
@@ -489,7 +527,18 @@
99
                    "'%s'", m->path);
100
    }
101
 
102
-   int ret = avformat_open_input(&m->fmt, m->path, format, NULL);
103
+   AVDictionary *opts = NULL;
104
+   if (m->buffering && m->is_network)
105
+       av_dict_set_int(&opts, "buffer_size", m->buffering, 0);
106
+
107
+   m->fmt = avformat_alloc_context();
108
+   m->fmt->interrupt_callback.callback = interrupt_callback;
109
+   m->fmt->interrupt_callback.opaque = m;
110
+
111
+   int ret = avformat_open_input(&m->fmt, m->path, format,
112
+           opts ? &opts : NULL);
113
+   av_dict_free(&opts);
114
+
115
    if (ret < 0) {
116
        blog(LOG_WARNING, "MP: Failed to open media: '%s'", m->path);
117
        return false;
118
@@ -513,20 +562,20 @@
119
    return true;
120
 }
121
 
122
-static void *mp_media_thread(void *opaque)
123
+static inline bool mp_media_thread(mp_media_t *m)
124
 {
125
-   mp_media_t *m = opaque;
126
-
127
    os_set_thread_name("mp_media_thread");
128
 
129
    if (!init_avformat(m)) {
130
-       return NULL;
131
+       return false;
132
+   }
133
+   if (!mp_media_reset(m)) {
134
+       return false;
135
    }
136
-
137
-   mp_media_reset(m);
138
 
139
    for (;;) {
140
        bool reset, kill, is_active;
141
+       bool timeout = false;
142
 
143
        pthread_mutex_lock(&m->mutex);
144
        is_active = m->active;
145
@@ -534,9 +583,9 @@
146
 
147
        if (!is_active) {
148
            if (os_sem_wait(m->sem) < 0)
149
-               return NULL;
150
+               return false;
151
        } else {
152
-           mp_media_sleepto(m);
153
+           timeout = mp_media_sleepto(m);
154
        }
155
 
156
        pthread_mutex_lock(&m->mutex);
157
@@ -557,14 +606,14 @@
158
        }
159
 
160
        /* frames are ready */
161
-       if (is_active) {
162
+       if (is_active && !timeout) {
163
            if (m->has_video)
164
                mp_media_next_video(m, false);
165
            if (m->has_audio)
166
                mp_media_next_audio(m);
167
 
168
            if (!mp_media_prepare_frames(m))
169
-               return NULL;
170
+               return false;
171
            if (mp_media_eof(m))
172
                continue;
173
 
174
@@ -572,6 +621,19 @@
175
        }
176
    }
177
 
178
+   return true;
179
+}
180
+
181
+static void *mp_media_thread_start(void *opaque)
182
+{
183
+   mp_media_t *m = opaque;
184
+
185
+   if (!mp_media_thread(m)) {
186
+       if (m->stop_cb) {
187
+           m->stop_cb(m->opaque);
188
+       }
189
+   }
190
+
191
    return NULL;
192
 }
193
 
194
@@ -593,7 +655,7 @@
195
    m->format_name = format_name ? bstrdup(format_name) : NULL;
196
    m->hw = hw;
197
 
198
-   if (pthread_create(&m->thread, NULL, mp_media_thread, m) != 0) {
199
+   if (pthread_create(&m->thread, NULL, mp_media_thread_start, m) != 0) {
200
        blog(LOG_WARNING, "MP: Could not create media thread");
201
        return false;
202
    }
203
@@ -605,6 +667,7 @@
204
 bool mp_media_init(mp_media_t *media,
205
        const char *path,
206
        const char *format,
207
+       int buffering,
208
        void *opaque,
209
        mp_video_cb v_cb,
210
        mp_audio_cb a_cb,
211
@@ -621,6 +684,7 @@
212
    media->stop_cb = stop_cb;
213
    media->v_preload_cb = v_preload_cb;
214
    media->force_range = force_range;
215
+   media->buffering = buffering;
216
 
217
    if (path && *path)
218
        media->is_network = !!strstr(path, "://");
219
@@ -666,9 +730,9 @@
220
    mp_kill_thread(media);
221
    mp_decode_free(&media->v);
222
    mp_decode_free(&media->a);
223
+   avformat_close_input(&media->fmt);
224
    pthread_mutex_destroy(&media->mutex);
225
    os_sem_destroy(media->sem);
226
-   avformat_close_input(&media->fmt);
227
    sws_freeContext(media->swscale);
228
    av_freep(&media->scale_pic[0]);
229
    bfree(media->path);
230
obs-studio-19.0.2.tar.xz/deps/media-playback/media-playback/media.h -> obs-studio-19.0.3.tar.xz/deps/media-playback/media-playback/media.h Changed
26
 
1
@@ -53,6 +53,7 @@
2
 
3
    char *path;
4
    char *format_name;
5
+   int buffering;
6
 
7
    enum AVPixelFormat scale_format;
8
    struct SwsContext *swscale;
9
@@ -79,6 +80,8 @@
10
    int64_t start_ts;
11
    int64_t base_ts;
12
 
13
+   uint64_t interrupt_poll_ts;
14
+
15
    pthread_mutex_t mutex;
16
    os_sem_t *sem;
17
    bool stopping;
18
@@ -96,6 +99,7 @@
19
 extern bool mp_media_init(mp_media_t *media,
20
        const char *path,
21
        const char *format,
22
+       int buffering,
23
        void *opaque,
24
        mp_video_cb v_cb,
25
        mp_audio_cb a_cb,
26
obs-studio-19.0.2.tar.xz/libobs-d3d11/d3d11-shader.cpp -> obs-studio-19.0.3.tar.xz/libobs-d3d11/d3d11-shader.cpp Changed
11
 
1
@@ -149,6 +149,9 @@
2
            continue;
3
        }
4
 
5
+       if (param.arrayCount)
6
+           size *= param.arrayCount;
7
+
8
        /* checks to see if this constant needs to start at a new
9
         * register */
10
        if (size && (constantSize & 15) != 0) {
11
obs-studio-19.0.2.tar.xz/libobs/graphics/effect-parser.c -> obs-studio-19.0.3.tar.xz/libobs/graphics/effect-parser.c Changed
16
 
1
@@ -228,12 +228,14 @@
2
 
3
        case PARSE_UNEXPECTED_CONTINUE:
4
            cf_adderror_syntax_error(&ep->cfp);
5
+           /* Falls through. */
6
        case PARSE_CONTINUE:
7
            ep_var_free(&var);
8
            continue;
9
 
10
        case PARSE_UNEXPECTED_BREAK:
11
            cf_adderror_syntax_error(&ep->cfp);
12
+           /* Falls through. */
13
        case PARSE_BREAK:
14
            ep_var_free(&var);
15
            do_break = true;
16
obs-studio-19.0.2.tar.xz/libobs/graphics/shader-parser.c -> obs-studio-19.0.3.tar.xz/libobs/graphics/shader-parser.c Changed
16
 
1
@@ -277,12 +277,14 @@
2
 
3
        case PARSE_UNEXPECTED_CONTINUE:
4
            cf_adderror_syntax_error(&sp->cfp);
5
+           /* Falls through. */
6
        case PARSE_CONTINUE:
7
            shader_var_free(&var);
8
            continue;
9
 
10
        case PARSE_UNEXPECTED_BREAK:
11
            cf_adderror_syntax_error(&sp->cfp);
12
+           /* Falls through. */
13
        case PARSE_BREAK:
14
            shader_var_free(&var);
15
            do_break = true;
16
obs-studio-19.0.2.tar.xz/libobs/obs-config.h -> obs-studio-19.0.3.tar.xz/libobs/obs-config.h Changed
10
 
1
@@ -41,7 +41,7 @@
2
  *
3
  * Reset to zero each major or minor version
4
  */
5
-#define LIBOBS_API_PATCH_VER  2
6
+#define LIBOBS_API_PATCH_VER  3
7
 
8
 #define MAKE_SEMANTIC_VERSION(major, minor, patch) \
9
                              ((major << 24) | \
10
obs-studio-19.0.2.tar.xz/libobs/util/cf-lexer.c -> obs-studio-19.0.3.tar.xz/libobs/util/cf-lexer.c Changed
9
 
1
@@ -123,6 +123,7 @@
2
            start_token->type = BASETOKEN_DIGIT;
3
            break;
4
        }
5
+       /* Falls through. */
6
 
7
    case BASETOKEN_NONE:
8
        return true;
9
obs-studio-19.0.2.tar.xz/plugins/enc-amf/#Resources/PATCH_NOTES.md -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/#Resources/PATCH_NOTES.md Changed
17
 
1
@@ -1,10 +1,14 @@
2
-# 2.1.5 - Now with full-range colors! (Hotfix 2)
3
+# 2.1.6 - Now with full-range colors! (Hotfix 2)
4
 Gone are the days of boring bland partial range recordings, here are the days of full range videos! With 2.1 the plugin implements several much wanted features, upgrading a few features from experimental to normal use and fixing a bunch of potential bugs.
5
 
6
 Hotfix 1: 'Encoding overloaded!' should no longer show up for systems which were perfectly capable recording at the same fps in versions before 2.x. Also fixed debug log lines showing up without the Debug option being checked.
7
 Hotfix 2: Added a workaround for a Driver-induced crash when running 32-bit OBS Studio.
8
+Hotfix 3: Fixed a bug with the code handling the 'Enforce Streaming Service Settings' option which caused some settings to no longer work as intended.
9
 
10
 ## Changelog
11
+### 2.1.6
12
+* Fixed a bug that causes 'Enforce Streaming Service Settings' to always be applied to Target Bitrate, Peak Bitrate, Rate Control Method, Profile, Quality Preset and Keyframe Interval. (#228)
13
+
14
 ### 2.1.5
15
 * Added a workaround for a 32-bit crash caused by AMD Driver 17.5.2 and earlier.
16
 
17
obs-studio-19.0.2.tar.xz/plugins/enc-amf/CMakeLists.txt -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/CMakeLists.txt Changed
31
 
1
@@ -1,3 +1,20 @@
2
+# A Plugin that integrates the AMD AMF encoder into OBS Studio
3
+# Copyright (C) 2016 - 2017 Michael Fabian Dirks
4
+#
5
+# This program is free software; you can redistribute it and/or modify
6
+# it under the terms of the GNU General Public License as published by
7
+# the Free Software Foundation; either version 2 of the License, or
8
+# (at your option) any later version.
9
+#
10
+# This program is distributed in the hope that it will be useful,
11
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+# GNU General Public License for more details.
14
+#
15
+# You should have received a copy of the GNU General Public License
16
+# along with this program; if not, write to the Free Software
17
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
18
+
19
 cmake_minimum_required(VERSION 2.8.12)
20
 PROJECT(enc-amf)
21
 
22
@@ -6,7 +23,7 @@
23
 ################################################################################
24
 SET(enc-amf_VERSION_MAJOR 2)
25
 SET(enc-amf_VERSION_MINOR 1)
26
-SET(enc-amf_VERSION_PATCH 5)
27
+SET(enc-amf_VERSION_PATCH 6)
28
 configure_file(
29
    "${PROJECT_SOURCE_DIR}/#Resources/package.in.bat"
30
    "${PROJECT_SOURCE_DIR}/#Resources/package.bat"
31
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/Version.h.in -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/Version.h.in Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/amf-capabilities.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/amf-capabilities.h Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/amf-encoder-h264.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/amf-encoder-h264.h Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/amf-encoder-h265.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/amf-encoder-h265.h Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/amf-encoder.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/amf-encoder.h Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/amf.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/amf.h Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/api-base.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/api-base.h Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/api-d3d11.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/api-d3d11.h Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/api-d3d9.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/api-d3d9.h Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/api-host.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/api-host.h Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/api-opengl.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/api-opengl.h Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/enc-h264.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/enc-h264.h Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/enc-h265.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/enc-h265.h Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/plugin.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/plugin.h Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/strings.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/strings.h Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/utility.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/utility.h Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/LICENSE -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/LICENSE Changed
302
 
1
@@ -1,21 +1,278 @@
2
-The MIT License (MIT)
3
-
4
-Copyright (c) 2016-2017 Michael Fabian Dirks
5
-
6
-Permission is hereby granted, free of charge, to any person obtaining a copy
7
-of this software and associated documentation files (the "Software"), to deal
8
-in the Software without restriction, including without limitation the rights
9
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
-copies of the Software, and to permit persons to whom the Software is
11
-furnished to do so, subject to the following conditions:
12
-
13
-The above copyright notice and this permission notice shall be included in all
14
-copies or substantial portions of the Software.
15
-
16
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
-SOFTWARE.
23
+           GNU GENERAL PUBLIC LICENSE
24
+              Version 2, June 1991
25
+
26
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
27
+ 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
28
+ Everyone is permitted to copy and distribute verbatim copies
29
+ of this license document, but changing it is not allowed.
30
+
31
+               Preamble
32
+
33
+  The licenses for most software are designed to take away your
34
+freedom to share and change it.  By contrast, the GNU General Public
35
+License is intended to guarantee your freedom to share and change free
36
+software--to make sure the software is free for all its users.  This
37
+General Public License applies to most of the Free Software
38
+Foundation's software and to any other program whose authors commit to
39
+using it.  (Some other Free Software Foundation software is covered by
40
+the GNU Library General Public License instead.)  You can apply it to
41
+your programs, too.
42
+
43
+  When we speak of free software, we are referring to freedom, not
44
+price.  Our General Public Licenses are designed to make sure that you
45
+have the freedom to distribute copies of free software (and charge for
46
+this service if you wish), that you receive source code or can get it
47
+if you want it, that you can change the software or use pieces of it
48
+in new free programs; and that you know you can do these things.
49
+
50
+  To protect your rights, we need to make restrictions that forbid
51
+anyone to deny you these rights or to ask you to surrender the rights.
52
+These restrictions translate to certain responsibilities for you if you
53
+distribute copies of the software, or if you modify it.
54
+
55
+  For example, if you distribute copies of such a program, whether
56
+gratis or for a fee, you must give the recipients all the rights that
57
+you have.  You must make sure that they, too, receive or can get the
58
+source code.  And you must show them these terms so they know their
59
+rights.
60
+
61
+  We protect your rights with two steps: (1) copyright the software, and
62
+(2) offer you this license which gives you legal permission to copy,
63
+distribute and/or modify the software.
64
+
65
+  Also, for each author's protection and ours, we want to make certain
66
+that everyone understands that there is no warranty for this free
67
+software.  If the software is modified by someone else and passed on, we
68
+want its recipients to know that what they have is not the original, so
69
+that any problems introduced by others will not reflect on the original
70
+authors' reputations.
71
+
72
+  Finally, any free program is threatened constantly by software
73
+patents.  We wish to avoid the danger that redistributors of a free
74
+program will individually obtain patent licenses, in effect making the
75
+program proprietary.  To prevent this, we have made it clear that any
76
+patent must be licensed for everyone's free use or not licensed at all.
77
+
78
+  The precise terms and conditions for copying, distribution and
79
+modification follow.
80
+
81
+           GNU GENERAL PUBLIC LICENSE
82
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
83
+
84
+  0. This License applies to any program or other work which contains
85
+a notice placed by the copyright holder saying it may be distributed
86
+under the terms of this General Public License.  The "Program", below,
87
+refers to any such program or work, and a "work based on the Program"
88
+means either the Program or any derivative work under copyright law:
89
+that is to say, a work containing the Program or a portion of it,
90
+either verbatim or with modifications and/or translated into another
91
+language.  (Hereinafter, translation is included without limitation in
92
+the term "modification".)  Each licensee is addressed as "you".
93
+
94
+Activities other than copying, distribution and modification are not
95
+covered by this License; they are outside its scope.  The act of
96
+running the Program is not restricted, and the output from the Program
97
+is covered only if its contents constitute a work based on the
98
+Program (independent of having been made by running the Program).
99
+Whether that is true depends on what the Program does.
100
+
101
+  1. You may copy and distribute verbatim copies of the Program's
102
+source code as you receive it, in any medium, provided that you
103
+conspicuously and appropriately publish on each copy an appropriate
104
+copyright notice and disclaimer of warranty; keep intact all the
105
+notices that refer to this License and to the absence of any warranty;
106
+and give any other recipients of the Program a copy of this License
107
+along with the Program.
108
+
109
+You may charge a fee for the physical act of transferring a copy, and
110
+you may at your option offer warranty protection in exchange for a fee.
111
+
112
+  2. You may modify your copy or copies of the Program or any portion
113
+of it, thus forming a work based on the Program, and copy and
114
+distribute such modifications or work under the terms of Section 1
115
+above, provided that you also meet all of these conditions:
116
+
117
+    a) You must cause the modified files to carry prominent notices
118
+    stating that you changed the files and the date of any change.
119
+
120
+    b) You must cause any work that you distribute or publish, that in
121
+    whole or in part contains or is derived from the Program or any
122
+    part thereof, to be licensed as a whole at no charge to all third
123
+    parties under the terms of this License.
124
+
125
+    c) If the modified program normally reads commands interactively
126
+    when run, you must cause it, when started running for such
127
+    interactive use in the most ordinary way, to print or display an
128
+    announcement including an appropriate copyright notice and a
129
+    notice that there is no warranty (or else, saying that you provide
130
+    a warranty) and that users may redistribute the program under
131
+    these conditions, and telling the user how to view a copy of this
132
+    License.  (Exception: if the Program itself is interactive but
133
+    does not normally print such an announcement, your work based on
134
+    the Program is not required to print an announcement.)
135
+
136
+These requirements apply to the modified work as a whole.  If
137
+identifiable sections of that work are not derived from the Program,
138
+and can be reasonably considered independent and separate works in
139
+themselves, then this License, and its terms, do not apply to those
140
+sections when you distribute them as separate works.  But when you
141
+distribute the same sections as part of a whole which is a work based
142
+on the Program, the distribution of the whole must be on the terms of
143
+this License, whose permissions for other licensees extend to the
144
+entire whole, and thus to each and every part regardless of who wrote it.
145
+
146
+Thus, it is not the intent of this section to claim rights or contest
147
+your rights to work written entirely by you; rather, the intent is to
148
+exercise the right to control the distribution of derivative or
149
+collective works based on the Program.
150
+
151
+In addition, mere aggregation of another work not based on the Program
152
+with the Program (or with a work based on the Program) on a volume of
153
+a storage or distribution medium does not bring the other work under
154
+the scope of this License.
155
+
156
+  3. You may copy and distribute the Program (or a work based on it,
157
+under Section 2) in object code or executable form under the terms of
158
+Sections 1 and 2 above provided that you also do one of the following:
159
+
160
+    a) Accompany it with the complete corresponding machine-readable
161
+    source code, which must be distributed under the terms of Sections
162
+    1 and 2 above on a medium customarily used for software interchange; or,
163
+
164
+    b) Accompany it with a written offer, valid for at least three
165
+    years, to give any third party, for a charge no more than your
166
+    cost of physically performing source distribution, a complete
167
+    machine-readable copy of the corresponding source code, to be
168
+    distributed under the terms of Sections 1 and 2 above on a medium
169
+    customarily used for software interchange; or,
170
+
171
+    c) Accompany it with the information you received as to the offer
172
+    to distribute corresponding source code.  (This alternative is
173
+    allowed only for noncommercial distribution and only if you
174
+    received the program in object code or executable form with such
175
+    an offer, in accord with Subsection b above.)
176
+
177
+The source code for a work means the preferred form of the work for
178
+making modifications to it.  For an executable work, complete source
179
+code means all the source code for all modules it contains, plus any
180
+associated interface definition files, plus the scripts used to
181
+control compilation and installation of the executable.  However, as a
182
+special exception, the source code distributed need not include
183
+anything that is normally distributed (in either source or binary
184
+form) with the major components (compiler, kernel, and so on) of the
185
+operating system on which the executable runs, unless that component
186
+itself accompanies the executable.
187
+
188
+If distribution of executable or object code is made by offering
189
+access to copy from a designated place, then offering equivalent
190
+access to copy the source code from the same place counts as
191
+distribution of the source code, even though third parties are not
192
+compelled to copy the source along with the object code.
193
+
194
+  4. You may not copy, modify, sublicense, or distribute the Program
195
+except as expressly provided under this License.  Any attempt
196
+otherwise to copy, modify, sublicense or distribute the Program is
197
+void, and will automatically terminate your rights under this License.
198
+However, parties who have received copies, or rights, from you under
199
+this License will not have their licenses terminated so long as such
200
+parties remain in full compliance.
201
+
202
+  5. You are not required to accept this License, since you have not
203
+signed it.  However, nothing else grants you permission to modify or
204
+distribute the Program or its derivative works.  These actions are
205
+prohibited by law if you do not accept this License.  Therefore, by
206
+modifying or distributing the Program (or any work based on the
207
+Program), you indicate your acceptance of this License to do so, and
208
+all its terms and conditions for copying, distributing or modifying
209
+the Program or works based on it.
210
+
211
+  6. Each time you redistribute the Program (or any work based on the
212
+Program), the recipient automatically receives a license from the
213
+original licensor to copy, distribute or modify the Program subject to
214
+these terms and conditions.  You may not impose any further
215
+restrictions on the recipients' exercise of the rights granted herein.
216
+You are not responsible for enforcing compliance by third parties to
217
+this License.
218
+
219
+  7. If, as a consequence of a court judgment or allegation of patent
220
+infringement or for any other reason (not limited to patent issues),
221
+conditions are imposed on you (whether by court order, agreement or
222
+otherwise) that contradict the conditions of this License, they do not
223
+excuse you from the conditions of this License.  If you cannot
224
+distribute so as to satisfy simultaneously your obligations under this
225
+License and any other pertinent obligations, then as a consequence you
226
+may not distribute the Program at all.  For example, if a patent
227
+license would not permit royalty-free redistribution of the Program by
228
+all those who receive copies directly or indirectly through you, then
229
+the only way you could satisfy both it and this License would be to
230
+refrain entirely from distribution of the Program.
231
+
232
+If any portion of this section is held invalid or unenforceable under
233
+any particular circumstance, the balance of the section is intended to
234
+apply and the section as a whole is intended to apply in other
235
+circumstances.
236
+
237
+It is not the purpose of this section to induce you to infringe any
238
+patents or other property right claims or to contest validity of any
239
+such claims; this section has the sole purpose of protecting the
240
+integrity of the free software distribution system, which is
241
+implemented by public license practices.  Many people have made
242
+generous contributions to the wide range of software distributed
243
+through that system in reliance on consistent application of that
244
+system; it is up to the author/donor to decide if he or she is willing
245
+to distribute software through any other system and a licensee cannot
246
+impose that choice.
247
+
248
+This section is intended to make thoroughly clear what is believed to
249
+be a consequence of the rest of this License.
250
+
251
+  8. If the distribution and/or use of the Program is restricted in
252
+certain countries either by patents or by copyrighted interfaces, the
253
+original copyright holder who places the Program under this License
254
+may add an explicit geographical distribution limitation excluding
255
+those countries, so that distribution is permitted only in or among
256
+countries not thus excluded.  In such case, this License incorporates
257
+the limitation as if written in the body of this License.
258
+
259
+  9. The Free Software Foundation may publish revised and/or new versions
260
+of the General Public License from time to time.  Such new versions will
261
+be similar in spirit to the present version, but may differ in detail to
262
+address new problems or concerns.
263
+
264
+Each version is given a distinguishing version number.  If the Program
265
+specifies a version number of this License which applies to it and "any
266
+later version", you have the option of following the terms and conditions
267
+either of that version or of any later version published by the Free
268
+Software Foundation.  If the Program does not specify a version number of
269
+this License, you may choose any version ever published by the Free Software
270
+Foundation.
271
+
272
+  10. If you wish to incorporate parts of the Program into other free
273
+programs whose distribution conditions are different, write to the author
274
+to ask for permission.  For software which is copyrighted by the Free
275
+Software Foundation, write to the Free Software Foundation; we sometimes
276
+make exceptions for this.  Our decision will be guided by the two goals
277
+of preserving the free status of all derivatives of our free software and
278
+of promoting the sharing and reuse of software generally.
279
+
280
+               NO WARRANTY
281
+
282
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
283
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
284
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
285
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
286
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
287
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
288
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
289
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
290
+REPAIR OR CORRECTION.
291
+
292
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
293
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
294
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
295
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
296
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
297
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
298
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
299
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
300
+POSSIBILITY OF SUCH DAMAGES.
301
\ No newline at end of file
302
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/amf-capabilities.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/amf-capabilities.cpp Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #include "amf-capabilities.h"
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/amf-encoder-h264.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/amf-encoder-h264.cpp Changed
61
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #include "amf-encoder-h264.h"
43
@@ -948,7 +943,7 @@
44
 void Plugin::AMD::EncoderH264::SetIDRPeriod(uint32_t v) {
45
    AMFTRACECALL;
46
 
47
-   AMF_RESULT res = m_AMFEncoder->SetProperty(AMF_VIDEO_ENCODER_IDR_PERIOD, (int64_t)v);
48
+   AMF_RESULT res = m_AMFEncoder->SetProperty(AMF_VIDEO_ENCODER_IDR_PERIOD, (int64_t)clamp(v, 1, 1000000));
49
    if (res != AMF_OK) {
50
        QUICK_FORMAT_MESSAGE(errMsg, PREFIX "<" __FUNCTION_NAME__ "> Failed to set to %ld, error %ls (code %d)",
51
            m_UniqueId, v, m_AMF->GetTrace()->GetResultText(res), res);
52
@@ -969,7 +964,7 @@
53
        throw std::exception(errMsg.c_str());
54
    }
55
    m_PeriodIDR = (uint32_t)e;
56
-   return (uint32_t)e;
57
+   return m_PeriodIDR;
58
 }
59
 
60
 void Plugin::AMD::EncoderH264::SetHeaderInsertionSpacing(uint32_t v) {
61
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/amf-encoder-h265.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/amf-encoder-h265.cpp Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #include "amf-encoder-h265.h"
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/amf-encoder.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/amf-encoder.cpp Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #include "amf-encoder.h"
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/amf.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/amf.cpp Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 //////////////////////////////////////////////////////////////////////////
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/api-base.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/api-base.cpp Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/api-d3d11.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/api-d3d11.cpp Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #include "api-d3d11.h"
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/api-d3d9.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/api-d3d9.cpp Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #include "api-d3d9.h"
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/api-host.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/api-host.cpp Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #include "api-host.h"
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/api-opengl.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/api-opengl.cpp Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #include "api-opengl.h"
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/enc-h264.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/enc-h264.cpp Changed
163
 
1
@@ -1,27 +1,23 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
+
43
 //////////////////////////////////////////////////////////////////////////
44
 // New UI Design
45
 //////////////////////////////////////////////////////////////////////////
46
@@ -142,8 +138,8 @@
47
 
48
 void Plugin::Interface::H264Interface::get_defaults(obs_data_t *data) {
49
    #pragma region OBS - Enforce Streaming Service Restrictions
50
-   obs_data_set_default_int(data, "bitrate", -1);
51
-   obs_data_set_default_int(data, "keyint_sec", -1);
52
+   obs_data_set_default_int(data, "bitrate", 0);
53
+   obs_data_set_default_int(data, "keyint_sec", 0);
54
    obs_data_set_default_string(data, "rate_control", "");
55
    obs_data_set_default_string(data, "profile", "");
56
    obs_data_set_default_string(data, "preset", "");
57
@@ -1385,24 +1381,6 @@
58
            } else if (strcmp(p_str, "high")) {
59
                m_VideoEncoder->SetProfile(Profile::High);
60
            }
61
-       } else {
62
-           switch (m_VideoEncoder->GetProfile()) {
63
-               case Profile::ConstrainedBaseline:
64
-                   obs_data_set_string(data, "profile", "constrained_baseline");
65
-                   break;
66
-               case Profile::Baseline:
67
-                   obs_data_set_string(data, "profile", "baseline");
68
-                   break;
69
-               case Profile::Main:
70
-                   obs_data_set_string(data, "profile", "main");
71
-                   break;
72
-               case Profile::ConstrainedHigh:
73
-                   obs_data_set_string(data, "profile", "constrained_high");
74
-                   break;
75
-               case Profile::High:
76
-                   obs_data_set_string(data, "profile", "high");
77
-                   break;
78
-           }
79
        }
80
 
81
        // Preset
82
@@ -1416,18 +1394,6 @@
83
                m_VideoEncoder->SetQualityPreset(QualityPreset::Quality);
84
            }
85
            obs_data_set_int(data, P_QUALITYPRESET, (int32_t)m_VideoEncoder->GetQualityPreset());
86
-       } else {
87
-           switch (m_VideoEncoder->GetQualityPreset()) {
88
-               case QualityPreset::Speed:
89
-                   obs_data_set_string(data, "preset", "speed");
90
-                   break;
91
-               case QualityPreset::Balanced:
92
-                   obs_data_set_string(data, "preset", "balanced");
93
-                   break;
94
-               case QualityPreset::Quality:
95
-                   obs_data_set_string(data, "preset", "quality");
96
-                   break;
97
-           }
98
        }
99
    }
100
    #pragma endregion OBS - Enforce Streaming Service Restrictions
101
@@ -1504,7 +1470,7 @@
102
    double_t framerate = (double_t)obsFPSnum / (double_t)obsFPSden;
103
    /// Keyframe Interval/Period
104
    {
105
-       uint32_t idrperiod = static_cast<uint32_t>(obs_data_get_int(data, P_PERIOD_IDR_H265));
106
+       uint32_t idrperiod = static_cast<uint32_t>(obs_data_get_int(data, P_PERIOD_IDR_H264));
107
        if (idrperiod == 0) {
108
            double_t keyinterv = obs_data_get_double(data, P_INTERVAL_KEYFRAME);
109
            idrperiod = static_cast<uint32_t>(ceil((keyinterv * framerate)));
110
@@ -1584,50 +1550,28 @@
111
            }
112
 
113
            obs_data_set_int(data, P_RATECONTROLMETHOD, (int32_t)m_VideoEncoder->GetRateControlMethod());
114
-       } else {
115
-           if (m_VideoEncoder->GetUsage() != Usage::UltraLowLatency)
116
-               switch (m_VideoEncoder->GetRateControlMethod()) {
117
-                   case RateControlMethod::ConstantBitrate:
118
-                       obs_data_set_string(data, "rate_control", "CBR");
119
-                       break;
120
-                   case RateControlMethod::PeakConstrainedVariableBitrate:
121
-                       obs_data_set_string(data, "rate_control", "VBR");
122
-                       break;
123
-                   case RateControlMethod::LatencyConstrainedVariableBitrate:
124
-                       obs_data_set_string(data, "rate_control", "VBR_LAT");
125
-                       break;
126
-                   case RateControlMethod::ConstantQP:
127
-                       obs_data_set_string(data, "rate_control", "CQP");
128
-                       break;
129
-               }
130
        }
131
 
132
        // Bitrate
133
        uint64_t bitrateOvr = obs_data_get_int(data, "bitrate") * 1000;
134
-       if (bitrateOvr != -1) {
135
+       if (bitrateOvr > 0) {
136
            if (m_VideoEncoder->GetTargetBitrate() > bitrateOvr)
137
                m_VideoEncoder->SetTargetBitrate(static_cast<uint32_t>(bitrateOvr));
138
            if (m_VideoEncoder->GetPeakBitrate() > bitrateOvr)
139
                m_VideoEncoder->SetPeakBitrate(static_cast<uint32_t>(bitrateOvr));
140
 
141
-           obs_data_set_int(data, "bitrate", m_VideoEncoder->GetTargetBitrate() / 1000);
142
-
143
            obs_data_set_int(data, P_BITRATE_TARGET, m_VideoEncoder->GetTargetBitrate() / 1000);
144
            obs_data_set_int(data, P_BITRATE_PEAK, m_VideoEncoder->GetPeakBitrate() / 1000);
145
-       } else {
146
-           obs_data_set_int(data, "bitrate", m_VideoEncoder->GetTargetBitrate() / 1000);
147
        }
148
 
149
        // IDR-Period (Keyframes)
150
        uint32_t fpsNum = m_VideoEncoder->GetFrameRate().first;
151
        uint32_t fpsDen = m_VideoEncoder->GetFrameRate().second;
152
-       if (obs_data_get_int(data, "keyint_sec") != -1) {
153
+       if (obs_data_get_int(data, "keyint_sec") > 0) {
154
            m_VideoEncoder->SetIDRPeriod(static_cast<uint32_t>(obs_data_get_int(data, "keyint_sec") * (static_cast<double_t>(fpsNum) / static_cast<double_t>(fpsDen))));
155
 
156
            obs_data_set_double(data, P_INTERVAL_KEYFRAME, static_cast<double_t>(obs_data_get_int(data, "keyint_sec")));
157
            obs_data_set_int(data, P_PERIOD_IDR_H264, static_cast<uint32_t>(obs_data_get_int(data, "keyint_sec") *  (static_cast<double_t>(fpsNum) / static_cast<double_t>(fpsDen))));
158
-       } else {
159
-           obs_data_set_int(data, "keyint_sec", static_cast<uint64_t>(m_VideoEncoder->GetIDRPeriod() / (static_cast<double_t>(fpsNum) / static_cast<double_t>(fpsDen))));
160
        }
161
    }
162
    #pragma endregion OBS Enforce Streaming Service Settings
163
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/enc-h265.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/enc-h265.cpp Changed
62
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 
43
@@ -117,16 +112,11 @@
44
 
45
 void Plugin::Interface::H265Interface::get_defaults(obs_data_t *data) {
46
    #pragma region OBS - Enforce Streaming Service Restrictions
47
-   obs_data_set_default_int(data, "bitrate", -1);
48
-   obs_data_set_default_int(data, "keyint_sec", -1);
49
+   obs_data_set_default_int(data, "bitrate", 0);
50
+   obs_data_set_default_int(data, "keyint_sec", 0);
51
    obs_data_set_default_string(data, "rate_control", "");
52
    obs_data_set_default_string(data, "profile", "");
53
    obs_data_set_default_string(data, "preset", "");
54
-   obs_data_set_int(data, "bitrate", -1);
55
-   obs_data_set_int(data, "keyint_sec", -1);
56
-   obs_data_set_string(data, "rate_control", "");
57
-   obs_data_set_string(data, "profile", "");
58
-   obs_data_set_string(data, "preset", "");
59
    #pragma endregion OBS - Enforce Streaming Service Restrictions
60
 
61
    // Static
62
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/plugin.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/plugin.cpp Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/utility.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/utility.cpp Changed
43
 
1
@@ -1,25 +1,20 @@
2
 /*
3
-MIT License
4
-
5
-Copyright (c) 2016-2017
6
-
7
-Permission is hereby granted, free of charge, to any person obtaining a copy
8
-of this software and associated documentation files (the "Software"), to deal
9
-in the Software without restriction, including without limitation the rights
10
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
-copies of the Software, and to permit persons to whom the Software is
12
-furnished to do so, subject to the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be included in all
15
-copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
-SOFTWARE.
24
+ * A Plugin that integrates the AMD AMF encoder into OBS Studio
25
+ * Copyright (C) 2016 - 2017 Michael Fabian Dirks
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License as published by
29
+ * the Free Software Foundation; either version 2 of the License, or
30
+ * (at your option) any later version.
31
+ *
32
+ * This program is distributed in the hope that it will be useful,
33
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
+ * GNU General Public License for more details.
36
+ *
37
+ * You should have received a copy of the GNU General Public License
38
+ * along with this program; if not, write to the Free Software
39
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
40
 */
41
 
42
 #pragma once
43
obs-studio-19.0.2.tar.xz/plugins/obs-ffmpeg/data/locale/en-US.ini -> obs-studio-19.0.3.tar.xz/plugins/obs-ffmpeg/data/locale/en-US.ini Changed
9
 
1
@@ -23,6 +23,7 @@
2
 Looping="Loop"
3
 Input="Input"
4
 InputFormat="Input Format"
5
+BufferingMB="Network Buffering (MB)"
6
 HardwareDecode="Use hardware decoding when available"
7
 ClearOnMediaEnd="Hide source when playback ends"
8
 Advanced="Advanced"
9
obs-studio-19.0.2.tar.xz/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c -> obs-studio-19.0.3.tar.xz/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c Changed
10
 
1
@@ -646,6 +646,8 @@
2
 #ifdef _WIN32
3
    char **argv;
4
 
5
+   SetErrorMode(SEM_FAILCRITICALERRORS);
6
+
7
    argv = malloc(argc * sizeof(char*));
8
    for (int i = 0; i < argc; i++) {
9
        size_t len = wcslen(argv_w[i]);
10
obs-studio-19.0.2.tar.xz/plugins/obs-ffmpeg/obs-ffmpeg-source.c -> obs-studio-19.0.3.tar.xz/plugins/obs-ffmpeg/obs-ffmpeg-source.c Changed
58
 
1
@@ -51,6 +51,7 @@
2
 
3
    char *input;
4
    char *input_format;
5
+   int buffering_mb;
6
    bool is_looping;
7
    bool is_local_file;
8
    bool is_hw_decoding;
9
@@ -70,9 +71,11 @@
10
            "input_format");
11
    obs_property_t *local_file = obs_properties_get(props, "local_file");
12
    obs_property_t *looping = obs_properties_get(props, "looping");
13
+   obs_property_t *buffering = obs_properties_get(props, "buffering_mb");
14
    obs_property_t *close = obs_properties_get(props, "close_when_inactive");
15
    obs_property_set_visible(input, !enabled);
16
    obs_property_set_visible(input_format, !enabled);
17
+   obs_property_set_visible(buffering, !enabled);
18
    obs_property_set_visible(close, enabled);
19
    obs_property_set_visible(local_file, enabled);
20
    obs_property_set_visible(looping, enabled);
21
@@ -89,6 +92,7 @@
22
 #if defined(_WIN32)
23
    obs_data_set_default_bool(settings, "hw_decode", true);
24
 #endif
25
+   obs_data_set_default_int(settings, "buffering_mb", 2);
26
 }
27
 
28
 static const char *media_filter =
29
@@ -210,7 +214,11 @@
30
 static void preload_frame(void *opaque, struct obs_source_frame *f)
31
 {
32
    struct ffmpeg_source *s = opaque;
33
-   obs_source_preload_video(s->source, f);
34
+   if (s->close_when_inactive)
35
+       return;
36
+
37
+   if (s->is_clear_on_media_end || s->is_looping)
38
+       obs_source_preload_video(s->source, f);
39
 }
40
 
41
 static void get_audio(void *opaque, struct obs_source_audio *a)
42
@@ -234,6 +242,7 @@
43
    if (s->input && *s->input)
44
        s->media_valid = mp_media_init(&s->media,
45
                s->input, s->input_format,
46
+               s->buffering_mb * 1024 * 1024,
47
                s, get_frame, get_audio, media_stopped,
48
                preload_frame, s->is_hw_decoding, s->range);
49
 }
50
@@ -303,6 +312,7 @@
51
            "restart_on_activate");
52
    s->range = (enum video_range_type)obs_data_get_int(settings,
53
            "color_range");
54
+   s->buffering_mb = (int)obs_data_get_int(settings, "buffering_mb");
55
    s->is_local_file = is_local_file;
56
 
57
    if (s->media_valid) {
58
obs-studio-19.0.2.tar.xz/plugins/obs-outputs/librtmp/cencode.c -> obs-studio-19.0.3.tar.xz/plugins/obs-outputs/librtmp/cencode.c Changed
17
 
1
@@ -48,6 +48,7 @@
2
            result = (fragment & 0x0fc) >> 2;
3
            *codechar++ = base64_encode_value(result);
4
            result = (fragment & 0x003) << 4;
5
+           /* Falls through. */
6
    case step_B:
7
            if (plainchar == plaintextend)
8
            {
9
@@ -59,6 +60,7 @@
10
            result |= (fragment & 0x0f0) >> 4;
11
            *codechar++ = base64_encode_value(result);
12
            result = (fragment & 0x00f) << 2;
13
+           /* Falls through. */
14
    case step_C:
15
            if (plainchar == plaintextend)
16
            {
17
obs-studio-19.0.2.tar.xz/plugins/obs-outputs/librtmp/rtmp.c -> obs-studio-19.0.3.tar.xz/plugins/obs-outputs/librtmp/rtmp.c Changed
10
 
1
@@ -729,6 +729,8 @@
2
         // since we're handling multiple addresses internally, fake the correct error response
3
 #ifdef _WIN32
4
         *socket_error = WSANO_DATA;
5
+#elif __FreeBSD__
6
+        *socket_error = ENOATTR;
7
 #else
8
         *socket_error = ENODATA;
9
 #endif
10
obs-studio-19.0.2.tar.xz/plugins/rtmp-services/data/package.json -> obs-studio-19.0.3.tar.xz/plugins/rtmp-services/data/package.json Changed
14
 
1
@@ -1,10 +1,10 @@
2
 {
3
    "url": "https://obsproject.com/obs2_update/rtmp-services",
4
-   "version": 58,
5
+   "version": 60,
6
    "files": [
7
        {
8
            "name": "services.json",
9
-           "version": 58
10
+           "version": 60
11
        }
12
    ]
13
 }
14
obs-studio-19.0.2.tar.xz/plugins/rtmp-services/data/services.json -> obs-studio-19.0.3.tar.xz/plugins/rtmp-services/data/services.json Changed
70
 
1
@@ -50,6 +50,10 @@
2
                     "url": "rtmp://live-lhr.twitch.tv/app"
3
                 },
4
                 {
5
+                    "name": "EU: Madrid, Spain",
6
+                    "url": "rtmp://live-mad.twitch.tv/app"
7
+                },
8
+                {
9
                     "name": "EU: Milan, Italy",
10
                     "url": "rtmp://live-mil.twitch.tv/app"
11
                 },
12
@@ -66,6 +70,10 @@
13
                     "url": "rtmp://live-arn.twitch.tv/app"
14
                 },
15
                 {
16
+                    "name": "EU: Vienna, Austria",
17
+                    "url": "rtmp://live-vie.twitch.tv/app"
18
+                },
19
+                {
20
                     "name": "EU: Warsaw, Poland",
21
                     "url": "rtmp://live-waw.twitch.tv/app"
22
                 },
23
@@ -95,21 +103,33 @@
24
                 },
25
                 {
26
                     "name": "South America: Rio de Janeiro, Brazil",
27
-                    "url": "rtmp://live-gig.twitch.tv/app"
28
+                    "url": "rtmp://live-rio.twitch.tv/app"
29
                 },
30
                 {
31
                     "name": "South America: Sao Paulo, Brazil",
32
-                    "url": "rtmp://live-gru.twitch.tv/app"
33
+                    "url": "rtmp://live-sao.twitch.tv/app"
34
                 },
35
                 {
36
                     "name": "US Central: Dallas, TX",
37
                     "url": "rtmp://live-dfw.twitch.tv/app"
38
                 },
39
                 {
40
+                    "name": "US Central: Denver, CO",
41
+                    "url": "rtmp://live-den.twitch.tv/app"
42
+                },
43
+                {
44
+                    "name": "US Central: Houston, TX",
45
+                    "url": "rtmp://live-hou.twitch.tv/app"
46
+                },
47
+                {
48
                     "name": "US East: Ashburn, VA",
49
                     "url": "rtmp://live-iad.twitch.tv/app"
50
                 },
51
                 {
52
+                    "name": "US East: Atlanta, GA",
53
+                    "url": "rtmp://live-atl.twitch.tv/app"
54
+                },
55
+                {
56
                     "name": "US East: Chicago",
57
                     "url": "rtmp://live-ord.twitch.tv/app"
58
                 },
59
@@ -126,6 +146,10 @@
60
                     "url": "rtmp://live-lax.twitch.tv/app"
61
                 },
62
                 {
63
+                    "name": "US West: Phoenix, AZ",
64
+                    "url": "rtmp://live-phx.twitch.tv/app"
65
+                },
66
+                {
67
                     "name": "US West: San Jose, CA",
68
                     "url": "rtmp://live-sjc.twitch.tv/app"
69
                 },
70
obs-studio-19.0.2.tar.xz/plugins/win-capture/game-capture.c -> obs-studio-19.0.3.tar.xz/plugins/win-capture/game-capture.c Changed
10
 
1
@@ -622,7 +622,7 @@
2
 static inline bool open_target_process(struct game_capture *gc)
3
 {
4
    gc->target_process = open_process(
5
-           PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,
6
+           PROCESS_QUERY_INFORMATION | SYNCHRONIZE,
7
            false, gc->process_id);
8
    if (!gc->target_process) {
9
        warn("could not open process: %s", gc->config.executable);
10
obs-studio-19.0.2.tar.xz/plugins/win-capture/get-graphics-offsets/dxgi-offsets.cpp -> obs-studio-19.0.3.tar.xz/plugins/win-capture/get-graphics-offsets/dxgi-offsets.cpp Changed
97
 
1
@@ -1,11 +1,13 @@
2
 #include <windows.h>
3
 #include <d3d10.h>
4
-#include <dxgi.h>
5
+#include <VersionHelpers.h>
6
+#include <dxgi1_2.h>
7
 #include "get-graphics-offsets.h"
8
 
9
 typedef HRESULT (WINAPI *d3d10create_t)(IDXGIAdapter*, D3D10_DRIVER_TYPE,
10
        HMODULE, UINT, UINT, DXGI_SWAP_CHAIN_DESC*,
11
        IDXGISwapChain**, IUnknown**);
12
+typedef HRESULT (WINAPI *create_fac_t)(IID *id, void**);
13
 
14
 struct dxgi_info {
15
    HMODULE        module;
16
@@ -13,10 +15,16 @@
17
    IDXGISwapChain *swap;
18
 };
19
 
20
+static const IID dxgiFactory2 =
21
+{0x50c83a1c, 0xe072, 0x4c48, {0x87, 0xb0, 0x36, 0x30, 0xfa, 0x36, 0xa6, 0xd0}};
22
+
23
 static inline bool dxgi_init(dxgi_info &info)
24
 {
25
    HMODULE       d3d10_module;
26
    d3d10create_t create;
27
+   create_fac_t  create_factory;
28
+   IDXGIFactory1 *factory;
29
+   IDXGIAdapter1 *adapter;
30
    IUnknown      *device;
31
    HRESULT       hr;
32
 
33
@@ -32,6 +40,9 @@
34
        return false;
35
    }
36
 
37
+   create_factory = (create_fac_t)GetProcAddress(info.module,
38
+           "CreateDXGIFactory1");
39
+
40
    d3d10_module = LoadLibraryA("d3d10.dll");
41
    if (!d3d10_module) {
42
        return false;
43
@@ -43,6 +54,21 @@
44
        return false;
45
    }
46
 
47
+   IID factory_iid = IsWindows8OrGreater()
48
+       ? dxgiFactory2
49
+       : __uuidof(IDXGIFactory1);
50
+
51
+   hr = create_factory(&factory_iid, (void**)&factory);
52
+   if (FAILED(hr)) {
53
+       return false;
54
+   }
55
+
56
+   hr = factory->EnumAdapters1(0, &adapter);
57
+   factory->Release();
58
+   if (FAILED(hr)) {
59
+       return false;
60
+   }
61
+
62
    DXGI_SWAP_CHAIN_DESC desc = {};
63
    desc.BufferCount          = 2;
64
    desc.BufferDesc.Format    = DXGI_FORMAT_R8G8B8A8_UNORM;
65
@@ -53,8 +79,9 @@
66
    desc.SampleDesc.Count     = 1;
67
    desc.Windowed             = true;
68
 
69
-   hr = create(nullptr, D3D10_DRIVER_TYPE_NULL, nullptr, 0,
70
+   hr = create(adapter, D3D10_DRIVER_TYPE_HARDWARE, nullptr, 0,
71
            D3D10_SDK_VERSION, &desc, &info.swap, &device);
72
+   adapter->Release();
73
    if (FAILED(hr)) {
74
        return false;
75
    }
76
@@ -75,10 +102,20 @@
77
 {
78
    dxgi_info info    = {};
79
    bool      success = dxgi_init(info);
80
+   HRESULT   hr;
81
 
82
    if (success) {
83
        offsets->present = vtable_offset(info.module, info.swap, 8);
84
        offsets->resize  = vtable_offset(info.module, info.swap, 13);
85
+
86
+       IDXGISwapChain1 *swap1;
87
+       hr = info.swap->QueryInterface(__uuidof(IDXGISwapChain1),
88
+               (void**)&swap1);
89
+       if (SUCCEEDED(hr)) {
90
+           offsets->present1 =
91
+               vtable_offset(info.module, swap1, 22);
92
+           swap1->Release();
93
+       }
94
    }
95
 
96
    dxgi_free(info);
97
obs-studio-19.0.2.tar.xz/plugins/win-capture/get-graphics-offsets/get-graphics-offsets.c -> obs-studio-19.0.3.tar.xz/plugins/win-capture/get-graphics-offsets/get-graphics-offsets.c Changed
18
 
1
@@ -15,6 +15,8 @@
2
    wc.lpfnWndProc   = (WNDPROC)DefWindowProcA;
3
    wc.lpszClassName = DUMMY_WNDCLASS;
4
 
5
+   SetErrorMode(SEM_FAILCRITICALERRORS);
6
+
7
    if (!RegisterClassA(&wc)) {
8
        printf("failed to register '%s'\n", DUMMY_WNDCLASS);
9
        return -1;
10
@@ -34,6 +36,7 @@
11
    printf("is_d3d9ex_clsoff=0x%"PRIx32"\n", d3d9.is_d3d9ex_clsoff);
12
    printf("[dxgi]\n");
13
    printf("present=0x%"PRIx32"\n", dxgi.present);
14
+   printf("present1=0x%"PRIx32"\n", dxgi.present1);
15
    printf("resize=0x%"PRIx32"\n", dxgi.resize);
16
 
17
    (void)argc;
18
obs-studio-19.0.2.tar.xz/plugins/win-capture/graphics-hook-info.h -> obs-studio-19.0.3.tar.xz/plugins/win-capture/graphics-hook-info.h Changed
10
 
1
@@ -42,6 +42,8 @@
2
 struct dxgi_offsets {
3
    uint32_t present;
4
    uint32_t resize;
5
+
6
+   uint32_t present1;
7
 };
8
 
9
 struct ddraw_offsets {
10
obs-studio-19.0.2.tar.xz/plugins/win-capture/graphics-hook/dxgi-capture.cpp -> obs-studio-19.0.3.tar.xz/plugins/win-capture/graphics-hook/dxgi-capture.cpp Changed
157
 
1
@@ -1,6 +1,6 @@
2
 #include <d3d10_1.h>
3
 #include <d3d11.h>
4
-#include <dxgi.h>
5
+#include <dxgi1_2.h>
6
 #include <d3dcompiler.h>
7
 
8
 #include "d3d1x_shaders.hpp"
9
@@ -14,9 +14,12 @@
10
 typedef HRESULT (STDMETHODCALLTYPE *resize_buffers_t)(IDXGISwapChain*, UINT,
11
        UINT, UINT, DXGI_FORMAT, UINT);
12
 typedef HRESULT (STDMETHODCALLTYPE *present_t)(IDXGISwapChain*, UINT, UINT);
13
+typedef HRESULT (STDMETHODCALLTYPE *present1_t)(IDXGISwapChain1*, UINT, UINT,
14
+       const DXGI_PRESENT_PARAMETERS *);
15
 
16
 static struct func_hook resize_buffers;
17
 static struct func_hook present;
18
+static struct func_hook present1;
19
 
20
 struct dxgi_swap_data {
21
    IDXGISwapChain *swap;
22
@@ -28,32 +31,32 @@
23
 
24
 static bool setup_dxgi(IDXGISwapChain *swap)
25
 {
26
-   const char *process_name = get_process_name();
27
-   bool ignore_d3d10 = false;
28
    IUnknown *device;
29
    HRESULT hr;
30
 
31
-   /* Call of duty ghosts allows the context to be queried as a d3d10
32
-    * context when it's actually a d3d11 context.  Why this is I don't
33
-    * quite know. */
34
-   if (_strcmpi(process_name, "iw6sp64_ship.exe") == 0 ||
35
-       _strcmpi(process_name, "iw6mp64_ship.exe") == 0 ||
36
-       _strcmpi(process_name, "justcause3.exe") == 0 ||
37
-       _strcmpi(process_name, "theHunterCotW_F.exe") == 0) {
38
-       ignore_d3d10 = true;
39
-   }
40
+   hr = swap->GetDevice(__uuidof(ID3D11Device), (void**)&device);
41
+   if (SUCCEEDED(hr)) {
42
+       ID3D11Device *d3d11 = reinterpret_cast<ID3D11Device*>(device);
43
+       D3D_FEATURE_LEVEL level = d3d11->GetFeatureLevel();
44
+       device->Release();
45
 
46
-   if (!ignore_d3d10) {
47
-       hr = swap->GetDevice(__uuidof(ID3D10Device), (void**)&device);
48
-       if (SUCCEEDED(hr)) {
49
+       if (level >= D3D_FEATURE_LEVEL_11_0) {
50
            data.swap = swap;
51
-           data.capture = d3d10_capture;
52
-           data.free = d3d10_free;
53
-           device->Release();
54
+           data.capture = d3d11_capture;
55
+           data.free = d3d11_free;
56
            return true;
57
        }
58
    }
59
 
60
+   hr = swap->GetDevice(__uuidof(ID3D10Device), (void**)&device);
61
+   if (SUCCEEDED(hr)) {
62
+       data.swap = swap;
63
+       data.capture = d3d10_capture;
64
+       data.free = d3d10_free;
65
+       device->Release();
66
+       return true;
67
+   }
68
+
69
    hr = swap->GetDevice(__uuidof(ID3D11Device), (void**)&device);
70
    if (SUCCEEDED(hr)) {
71
        data.swap = swap;
72
@@ -165,6 +168,53 @@
73
    return hr;
74
 }
75
 
76
+static HRESULT STDMETHODCALLTYPE hook_present1(IDXGISwapChain1 *swap,
77
+       UINT sync_interval, UINT flags,
78
+       const DXGI_PRESENT_PARAMETERS *params)
79
+{
80
+   IUnknown *backbuffer = nullptr;
81
+   bool capture_overlay = global_hook_info->capture_overlay;
82
+   bool test_draw = (flags & DXGI_PRESENT_TEST) != 0;
83
+   bool capture;
84
+   HRESULT hr;
85
+
86
+   if (!data.swap && !capture_active()) {
87
+       setup_dxgi(swap);
88
+   }
89
+
90
+   capture = !test_draw && swap == data.swap && !!data.capture;
91
+   if (capture && !capture_overlay) {
92
+       backbuffer = get_dxgi_backbuffer(swap);
93
+
94
+       if (!!backbuffer) {
95
+           DXGI_SWAP_CHAIN_DESC1 desc;
96
+           swap->GetDesc1(&desc);
97
+           data.capture(swap, backbuffer, capture_overlay);
98
+           backbuffer->Release();
99
+       }
100
+   }
101
+
102
+   unhook(&present1);
103
+   present1_t call = (present1_t)present1.call_addr;
104
+   hr = call(swap, sync_interval, flags, params);
105
+   rehook(&present1);
106
+
107
+   if (capture && capture_overlay) {
108
+       if (resize_buffers_called) {
109
+           resize_buffers_called = false;
110
+       } else {
111
+           backbuffer = get_dxgi_backbuffer(swap);
112
+
113
+           if (!!backbuffer) {
114
+               data.capture(swap, backbuffer, capture_overlay);
115
+               backbuffer->Release();
116
+           }
117
+       }
118
+   }
119
+
120
+   return hr;
121
+}
122
+
123
 static pD3DCompile get_compiler(void)
124
 {
125
    pD3DCompile compile = nullptr;
126
@@ -202,6 +252,7 @@
127
    HRESULT hr;
128
    void *present_addr;
129
    void *resize_addr;
130
+   void *present1_addr = nullptr;
131
 
132
    if (!dxgi_module) {
133
        return false;
134
@@ -251,14 +302,22 @@
135
            global_hook_info->offsets.dxgi.present);
136
    resize_addr = get_offset_addr(dxgi_module,
137
            global_hook_info->offsets.dxgi.resize);
138
+   if (global_hook_info->offsets.dxgi.present1)
139
+       present1_addr = get_offset_addr(dxgi_module,
140
+               global_hook_info->offsets.dxgi.present1);
141
 
142
    hook_init(&present, present_addr, (void*)hook_present,
143
            "IDXGISwapChain::Present");
144
    hook_init(&resize_buffers, resize_addr, (void*)hook_resize_buffers,
145
            "IDXGISwapChain::ResizeBuffers");
146
+   if (present1_addr)
147
+       hook_init(&present1, present1_addr, (void*)hook_present1,
148
+               "IDXGISwapChain1::Present1");
149
 
150
    rehook(&resize_buffers);
151
    rehook(&present);
152
+   if (present1_addr)
153
+       rehook(&present1);
154
 
155
    hlog("Hooked DXGI");
156
    return true;
157
obs-studio-19.0.2.tar.xz/plugins/win-capture/inject-helper/inject-helper.c -> obs-studio-19.0.3.tar.xz/plugins/win-capture/inject-helper/inject-helper.c Changed
9
 
1
@@ -101,6 +101,7 @@
2
    LPWSTR *argv;
3
    int ret = INJECT_ERROR_INVALID_PARAMS;
4
 
5
+   SetErrorMode(SEM_FAILCRITICALERRORS);
6
    load_debug_privilege();
7
 
8
    pCommandLineW = GetCommandLineW();
9
obs-studio-19.0.2.tar.xz/plugins/win-capture/load-graphics-offsets.c -> obs-studio-19.0.3.tar.xz/plugins/win-capture/load-graphics-offsets.c Changed
10
 
1
@@ -36,6 +36,8 @@
2
 
3
    offsets->dxgi.present =
4
        (uint32_t)config_get_uint(config, "dxgi", "present");
5
+   offsets->dxgi.present1 =
6
+       (uint32_t)config_get_uint(config, "dxgi", "present1");
7
    offsets->dxgi.resize =
8
        (uint32_t)config_get_uint(config, "dxgi", "resize");
9
 
10
obs-studio-19.0.2.tar.xz/plugins/win-wasapi/enum-wasapi.cpp -> obs-studio-19.0.3.tar.xz/plugins/win-wasapi/enum-wasapi.cpp Changed
10
 
1
@@ -20,7 +20,7 @@
2
        PropVariantInit(&nameVar);
3
        res = store->GetValue(PKEY_Device_FriendlyName, &nameVar);
4
 
5
-       if (SUCCEEDED(res)) {
6
+       if (SUCCEEDED(res) && nameVar.pwszVal && *nameVar.pwszVal) {
7
            size_t len = wcslen(nameVar.pwszVal);
8
            size_t size;
9
 
10
Refresh

No build results available

Refresh

No rpmlint results available

Request History
boombatower's avatar

boombatower created request almost 8 years ago

- Update to version 19.0.3:
* rtmp-services: Update Twitch ingests
* librtmp: Fix build error with ENODATA on FreeBSD
* rtmp-services: Rename Beam to Mixer
* UI/installer: Specify "source" in plugins section
* UI/installer: Fix broken realsense plugin install locations
* UI/installer: Update installer VC redist download link
* win-wasapi: Fix potential null pointer deref in enumeration
* UI: Look for plugins in ~/Library/Application Support/obs-studio/plugins/
* libobs/plugins/UI: Suppress -Wimplicit-fallthrough introduced by GCC 7
* win-capture: Limit OpenProcess flags to prevent A/C issues
* deps/media-playback: Output av_read_frame error string
* deps/media-playback: Start decoding regardless of keyframe
* obs-ffmpeg: Add network buffering property
* deps/media-playback: Call stop callback on failure
* deps/media-playback: Fix lockup issues
* Revert "rtmp-services: Rename Beam to Mixer"
* rtmp-services: Add new twitch.tv ingests
* UI/updater: Fix incorrect path in portable mode
* deps/media-playback: Add timeout when waiting for frames
* deps/media-playback: Fix AV_NOPTS_VALUE being used as timestamp
* deps/media-playback: Fix playback reset fail after stop
* obs-ffmpeg: Don't preload media frames if set to pause on end
* win-capture/graphics-hook: Fix D3D10/D3D11 detection
* UI: Ignore first 2.5 seconds of bandwidth test
* UI: Initialize Stats window values after OBSInit/reset
* win-capture: Add IDXGISwapChain1::Present1 hook support
* win-capture: Use PROCESS_QUERY_INFORMATION for game capture
* obs-ffmpeg: Do not precache if set to close when inactive
* UI: Use QT_TO_UTF8 with name dialog


boombatower's avatar

boombatower accepted request almost 8 years ago

ok