summaryrefslogtreecommitdiffstats
path: root/media/cast/cast_config.h
diff options
context:
space:
mode:
authorpwestin@google.com <pwestin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-15 16:40:01 +0000
committerpwestin@google.com <pwestin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-15 16:40:01 +0000
commit51de68e9c63baa59293b2ab7525488755fca5386 (patch)
tree1e3077a29da31f1bb06926afd54ec94b00a9d824 /media/cast/cast_config.h
parent1c219d4058d435d367120e3c2ea316b4d8f5c69c (diff)
downloadchromium_src-51de68e9c63baa59293b2ab7525488755fca5386.zip
chromium_src-51de68e9c63baa59293b2ab7525488755fca5386.tar.gz
chromium_src-51de68e9c63baa59293b2ab7525488755fca5386.tar.bz2
Cast: Change internal frame_id from 8 bits to 32 bits.
Needed since we will use the frame_id as a key to the crypto. It will remain 8 bits over the wire. Review URL: https://codereview.chromium.org/65013004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235349 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/cast/cast_config.h')
-rw-r--r--media/cast/cast_config.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/media/cast/cast_config.h b/media/cast/cast_config.h
index 4a723b9..84a6af2 100644
--- a/media/cast/cast_config.h
+++ b/media/cast/cast_config.h
@@ -152,8 +152,8 @@ struct EncodedVideoFrame {
VideoCodec codec;
bool key_frame;
- uint8 frame_id;
- uint8 last_referenced_frame_id;
+ uint32 frame_id;
+ uint32 last_referenced_frame_id;
std::vector<uint8> data;
};
@@ -173,7 +173,7 @@ struct EncodedAudioFrame {
~EncodedAudioFrame();
AudioCodec codec;
- uint8 frame_id; // Needed to release the frame. Not used send side.
+ uint32 frame_id; // Needed to release the frame.
int samples; // Needed send side to advance the RTP timestamp.
// Not used receive side.
std::vector<uint8> data;
@@ -225,7 +225,7 @@ class VideoEncoderController {
virtual void GenerateKeyFrame() = 0;
// Inform the encoder to only reference frames older or equal to frame_id;
- virtual void LatestFrameIdToReference(uint8 frame_id) = 0;
+ virtual void LatestFrameIdToReference(uint32 frame_id) = 0;
// Query the codec about how many frames it has skipped due to slow ACK.
virtual int NumberOfSkippedFrames() const = 0;