mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-22 08:20:18 +00:00
Update common-c and use codec masks rather than exact formats
This commit is contained in:
@@ -75,7 +75,7 @@
|
|||||||
|
|
||||||
- (Boolean)readyForPictureData
|
- (Boolean)readyForPictureData
|
||||||
{
|
{
|
||||||
if (videoFormat == VIDEO_FORMAT_H264) {
|
if (videoFormat & VIDEO_FORMAT_MASK_H264) {
|
||||||
return !waitingForSps && !waitingForPps;
|
return !waitingForSps && !waitingForPps;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
|
|
||||||
- (Boolean)isNalReferencePicture:(unsigned char)nalType
|
- (Boolean)isNalReferencePicture:(unsigned char)nalType
|
||||||
{
|
{
|
||||||
if (videoFormat == VIDEO_FORMAT_H264) {
|
if (videoFormat & VIDEO_FORMAT_MASK_H264) {
|
||||||
return nalType == 0x65;
|
return nalType == 0x65;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -201,7 +201,7 @@
|
|||||||
|
|
||||||
// See if we've got all the parameter sets we need for our video format
|
// See if we've got all the parameter sets we need for our video format
|
||||||
if ([self readyForPictureData]) {
|
if ([self readyForPictureData]) {
|
||||||
if (videoFormat == VIDEO_FORMAT_H264) {
|
if (videoFormat & VIDEO_FORMAT_MASK_H264) {
|
||||||
const uint8_t* const parameterSetPointers[] = { [spsData bytes], [ppsData bytes] };
|
const uint8_t* const parameterSetPointers[] = { [spsData bytes], [ppsData bytes] };
|
||||||
const size_t parameterSetSizes[] = { [spsData length], [ppsData length] };
|
const size_t parameterSetSizes[] = { [spsData length], [ppsData length] };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user