Skip to content

Commit 23b09e3

Browse files
author
loki
committed
fix an issue causing free called on unallocated data
1 parent 4024378 commit 23b09e3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

sunshine/platform/linux/vaapi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ class egl_t : public platf::hwdevice_t {
934934
return 0;
935935
}
936936

937-
int set_frame(AVFrame *frame) {
937+
int set_frame(AVFrame *frame) override {
938938
this->hwframe.reset(frame);
939939
this->frame = frame;
940940

sunshine/video.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -927,11 +927,10 @@ std::optional<session_t> make_session(const encoder_t &encoder, const config_t &
927927
device->set_colorspace(sws_color_space, ctx->color_range);
928928

929929
if(video_format[encoder_t::VUI_PARAMETERS]) {
930-
return std::make_optional(session_t {
930+
return std::make_optional<session_t>(
931931
std::move(ctx),
932932
std::move(device),
933-
{},
934-
});
933+
util::buffer_t<std::uint8_t> {});
935934
}
936935

937936
return std::make_optional<session_t>(

0 commit comments

Comments
 (0)