ffmppg typo fix

This commit is contained in:
overtake 2021-12-11 11:35:43 +04:00
parent 6630833866
commit 36c7ee60a5
3 changed files with 2 additions and 2 deletions

View File

@ -10,3 +10,4 @@
#import <FFMpegBinding/FFMpegPacket.h>
#import <FFMpegBinding/FFMpegAVCodec.h>
#import <FFMpegBinding/FFMpegRemuxer.h>
#import <FFMpegBinding/FrameConverter.h>

View File

@ -2,7 +2,6 @@
#define FrameConverter_h
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
void fillDstPlane(uint8_t * _Nonnull dstPlane, uint8_t * _Nonnull srcPlane1, uint8_t * _Nonnull srcPlane2, size_t srcPlaneSize);

View File

@ -295,7 +295,7 @@ public final class FFMpegMediaVideoFrameDecoder: MediaTrackFrameDecoder {
dstPlane = malloc(dstPlaneSize)!.assumingMemoryBound(to: UInt8.self)
self.dstPlane = (dstPlane, dstPlaneSize)
}
fillDstPlane(dstPlane, frame.data[1]!, frame.data[2]!, srcPlaneSize)
let status = CVPixelBufferLockBaseAddress(pixelBuffer, [])