Index: webrtc/common_video/h264/sps_parser.cc |
diff --git a/webrtc/common_video/h264/sps_parser.cc b/webrtc/common_video/h264/sps_parser.cc |
index cf4b36d1238b798025792d6569e11a3c32011e44..86a39de83f522aaa8796c617650e1f1606a4a33e 100644 |
--- a/webrtc/common_video/h264/sps_parser.cc |
+++ b/webrtc/common_video/h264/sps_parser.cc |
@@ -10,6 +10,8 @@ |
#include "webrtc/common_video/h264/sps_parser.h" |
+#include <memory> |
+ |
#include "webrtc/common_video/h264/h264_common.h" |
#include "webrtc/base/bitbuffer.h" |
#include "webrtc/base/bytebuffer.h" |
@@ -68,7 +70,7 @@ rtc::Optional<SpsParser::SpsState> SpsParser::ParseSpsUpToVui( |
// level_idc: u(8) |
RETURN_EMPTY_ON_FAIL(buffer->ConsumeBytes(1)); |
// seq_parameter_set_id: ue(v) |
- RETURN_EMPTY_ON_FAIL(buffer->ReadExponentialGolomb(&golomb_ignored)); |
+ RETURN_EMPTY_ON_FAIL(buffer->ReadExponentialGolomb(&sps.id)); |
sps.separate_colour_plane_flag = 0; |
// See if profile_idc has chroma format information. |
if (profile_idc == 100 || profile_idc == 110 || profile_idc == 122 || |