fix(macos): fix broken streaming on MacOS (#2485)

This commit is contained in:
Vithorio Polten 2024-05-14 15:14:40 -03:00 committed by GitHub
commit ff54ab2852
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 71 additions and 34 deletions

View file

@ -4,6 +4,7 @@
*/
#include <utility>
#include "src/platform/macos/av_img_t.h"
#include "src/platform/macos/nv12_zero_device.h"
#include "src/video.h"
@ -24,6 +25,8 @@ namespace platf {
CVPixelBufferRelease((CVPixelBufferRef) data);
}
util::safe_ptr<AVFrame, free_frame> av_frame;
int
nv12_zero_device::convert(platf::img_t &img) {
auto *av_img = (av_img_t *) &img;