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

Unified Diff: content/common/gpu/media/h264_parser.cc

Issue 10411085: Build AVC decoder configuration record (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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: content/common/gpu/media/h264_parser.cc
diff --git a/content/common/gpu/media/h264_parser.cc b/content/common/gpu/media/h264_parser.cc
index ebed3f2bfcbdef5ff5f05945b2d92c6219b790fd..ef73c5c9fa858065ecedd88e71adc88ecad64f47 100644
--- a/content/common/gpu/media/h264_parser.cc
+++ b/content/common/gpu/media/h264_parser.cc
@@ -647,7 +647,6 @@ static void FillDefaultSeqScalingLists(H264SPS* sps) {
H264Parser::Result H264Parser::ParseSPS(int* sps_id) {
// See 7.4.2.1.
- int data;
Result res;
*sps_id = -1;
@@ -655,8 +654,7 @@ H264Parser::Result H264Parser::ParseSPS(int* sps_id) {
scoped_ptr<H264SPS> sps(new H264SPS());
READ_BITS_OR_RETURN(8, &sps->profile_idc);
- // Skip constraint_setx_flag and reserved flags.
- READ_BITS_OR_RETURN(8, &data);
+ READ_BITS_OR_RETURN(8, &sps->constraint_setx_flag);
Pawel Osciak 2012/05/30 00:28:40 There are only 6 bits of flags, the last 2 bits ar
sail 2012/06/02 21:05:49 Done. It looks like the last 4 bytes are supposed
READ_BITS_OR_RETURN(8, &sps->level_idc);
READ_UE_OR_RETURN(&sps->seq_parameter_set_id);
TRUE_OR_RETURN(sps->seq_parameter_set_id < 32);

Powered by Google App Engine
This is Rietveld 408576698