Changeset 239240 in webkit


Ignore:
Timestamp:
Dec 14, 2018 4:06:15 PM (5 years ago)
Author:
youenn@apple.com
Message:

kVTVideoEncoderSpecification_Usage should not be set if VCP is not enabled
https://bugs.webkit.org/show_bug.cgi?id=192716

Reviewed by Eric Carlson.

https://trac.webkit.org/changeset/239220 sets the usage value for all platforms, but we should only enable it for VCP.

  • Source/webrtc/sdk/objc/components/video_codec/RTCVideoEncoderH264.mm:

(-[RTCSingleVideoEncoderH264 resetCompressionSessionWithPixelFormat:]):

Location:
trunk/Source/ThirdParty/libwebrtc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/ThirdParty/libwebrtc/ChangeLog

    r239220 r239240  
     12018-12-14  Youenn Fablet  <youenn@apple.com>
     2
     3        kVTVideoEncoderSpecification_Usage should not be set if VCP is not enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=192716
     5
     6        Reviewed by Eric Carlson.
     7
     8        https://trac.webkit.org/changeset/239220 sets the usage value for all platforms, but we should only enable it for VCP.
     9        * Source/webrtc/sdk/objc/components/video_codec/RTCVideoEncoderH264.mm:
     10        (-[RTCSingleVideoEncoderH264 resetCompressionSessionWithPixelFormat:]):
     11
    1122018-12-14  Youenn Fablet  <youenn@apple.com>
    213
  • trunk/Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/components/video_codec/RTCVideoEncoderH264.mm

    r239220 r239240  
    619619  CFDictionarySetValue(encoderSpecs, kVTCompressionPropertyKey_RealTime, kCFBooleanTrue);
    620620
    621   if (auto key = getkVTVideoEncoderSpecification_Usage()) {
    622     int usageValue = 1;
    623     auto usage = CFNumberCreate(nullptr, kCFNumberIntType, &usageValue);
    624     CFDictionarySetValue(encoderSpecs, (__bridge CFStringRef)key, usage);
    625     CFRelease(usage);
    626   }
    627 
     621#if ENABLE_VCP_ENCODER
     622  auto key = getkVTVideoEncoderSpecification_Usage();
     623  int usageValue = 1;
     624  auto usage = CFNumberCreate(nullptr, kCFNumberIntType, &usageValue);
     625  CFDictionarySetValue(encoderSpecs, (__bridge CFStringRef)key, usage);
     626  CFRelease(usage);
     627#endif
    628628  OSStatus status =
    629629      CompressionSessionCreate(nullptr,  // use default allocator
Note: See TracChangeset for help on using the changeset viewer.