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

Unified Diff: webrtc/modules/video_coding/frame_object.h

Issue 2468183002: RtpFrameObject::GetCodecHeader now return rtc::Optional<RTPVideoTypeHeader> (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | webrtc/modules/video_coding/frame_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/frame_object.h
diff --git a/webrtc/modules/video_coding/frame_object.h b/webrtc/modules/video_coding/frame_object.h
index 542797226e99434dc6e6e95b5c81599ddc47ef48..915224ede8de70bdd45ec7c27962e8d8a58ae4e1 100644
--- a/webrtc/modules/video_coding/frame_object.h
+++ b/webrtc/modules/video_coding/frame_object.h
@@ -11,6 +11,7 @@
#ifndef WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_
#define WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_
+#include "webrtc/base/optional.h"
#include "webrtc/common_types.h"
#include "webrtc/modules/include/module_common_types.h"
#include "webrtc/modules/video_coding/encoded_frame.h"
@@ -71,7 +72,7 @@ class RtpFrameObject : public FrameObject {
uint32_t Timestamp() const override;
int64_t ReceivedTime() const override;
int64_t RenderTime() const override;
- RTPVideoTypeHeader* GetCodecHeader() const;
+ rtc::Optional<RTPVideoTypeHeader> GetCodecHeader() const;
terelius 2016/11/02 13:08:18 How large is the RTPVideoTypeHeader, and how often
philipel 2016/11/02 13:12:24 It is 1624 bytes, and it is called ~1 time per fra
terelius 2016/11/02 13:18:38 A 1.5 kB header seems like a lot. Does it have to
philipel 2016/11/02 13:26:14 It is quite large (in fact it is larger than the b
terelius 2016/11/02 13:34:49 Ok. Can you file a feature request in the bugtrack
private:
rtc::scoped_refptr<PacketBuffer> packet_buffer_;
« no previous file with comments | « no previous file | webrtc/modules/video_coding/frame_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698