fix(macos): fix broken streaming on MacOS (#2485)
This commit is contained in:
parent
c5d8e1b1a0
commit
ff54ab2852
5 changed files with 71 additions and 34 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue