Index: webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc |
diff --git a/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc b/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc |
index 4ac9cd0db192e8290bde3ab5ee7e4748b610d3aa..a263707f4acade71b5304f4b98c9d487b3ea1802 100644 |
--- a/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc |
+++ b/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc |
@@ -27,9 +27,17 @@ TEST(H264VideoToolboxNaluTest, TestHasVideoFormatDescription) { |
const uint8_t sps_buffer[] = {0x00, 0x00, 0x00, 0x01, 0x27}; |
EXPECT_TRUE(H264AnnexBBufferHasVideoFormatDescription(sps_buffer, |
arraysize(sps_buffer))); |
+ const uint8_t aud_sps_buffer[] = {0x00, 0x00, 0x00, 0x01, 0x29, |
+ 0x00, 0x00, 0x00, 0x01, 0x27}; |
+ EXPECT_TRUE(H264AnnexBBufferHasVideoFormatDescription( |
+ aud_sps_buffer, arraysize(aud_sps_buffer))); |
const uint8_t other_buffer[] = {0x00, 0x00, 0x00, 0x01, 0x28}; |
EXPECT_FALSE(H264AnnexBBufferHasVideoFormatDescription( |
other_buffer, arraysize(other_buffer))); |
+ const uint8_t aud_other_buffer[] = {0x00, 0x00, 0x00, 0x01, 0x29, |
+ 0x00, 0x00, 0x00, 0x01, 0x28}; |
+ EXPECT_FALSE(H264AnnexBBufferHasVideoFormatDescription( |
+ aud_other_buffer, arraysize(aud_other_buffer))); |
} |
TEST(H264VideoToolboxNaluTest, TestCreateVideoFormatDescription) { |