Merge pull request #24759 from jubinchheda:4.x

Replace deprecated symbol with AVVideoCodecTypeH264 deprecated since ios11
This commit is contained in:
Alexander Smorkalov 2023-12-25 13:31:12 +03:00 committed by GitHub
commit bb5b5bb24d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -376,7 +376,7 @@ static CGFloat DegreesToRadians(CGFloat degrees) {return degrees * M_PI / 180;}
NSDictionary *outputSettings
= [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:self.imageWidth], AVVideoWidthKey,
[NSNumber numberWithInt:self.imageHeight], AVVideoHeightKey,
AVVideoCodecH264, AVVideoCodecKey,
AVVideoCodecTypeH264, AVVideoCodecKey,
nil
];