aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-10-22 04:56:34 +0200
committerdec05eba <dec05eba@protonmail.com>2023-10-22 04:56:34 +0200
commit51154b71be6be742541f53a21b5c9d39d0033270 (patch)
tree348cc95ce90744c14884b2821136586b5ea8ed09 /src/main.cpp
parent44d50065b92284638398b4989490ac66eb34c53e (diff)
Fix vram leak for reals
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 1f436ff..eb5f8c2 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2186,6 +2186,8 @@ int main(int argc, char **argv) {
fprintf(stderr, "Error: avcodec_send_frame failed, error: %s\n", av_error_to_string(ret));
}
}
+
+ gsr_capture_end(capture, frame);
video_pts_counter += num_frames;
}
}