Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.mm

Issue 2772033002: Add content type information to encoded images and corresponding rtp extension header (Closed)
Patch Set: Set EncodedImage content_type from vie_encoder Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.mm
diff --git a/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.mm b/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.mm
index 526cdbe4554614f1d9c4d47003b316b6a00780cb..920c28cd6afd9848682696ca6def6920c2acb2db 100644
--- a/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.mm
+++ b/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.mm
@@ -19,6 +19,7 @@
#include "avfoundationformatmapper.h"
#include "webrtc/api/video/video_rotation.h"
+#include "webrtc/api/video/video_content_type.h"
#include "webrtc/base/bind.h"
#include "webrtc/base/checks.h"
#include "webrtc/base/logging.h"
@@ -169,7 +170,8 @@ void AVFoundationVideoCapturer::CaptureSampleBuffer(
rotation = kVideoRotation_0;
}
- OnFrame(webrtc::VideoFrame(buffer, rotation, translated_camera_time_us),
+ OnFrame(webrtc::VideoFrame(buffer, rotation, kVideoContent_Default,
+ translated_camera_time_us),
captured_width, captured_height);
}

Powered by Google App Engine
This is Rietveld 408576698