Index: trunk/src/media/filters/h264_parser.cc |
=================================================================== |
--- trunk/src/media/filters/h264_parser.cc (revision 280019) |
+++ trunk/src/media/filters/h264_parser.cc (working copy) |
@@ -106,6 +106,10 @@ |
} \ |
} while (0) |
+enum AspectRatioIdc { |
+ kExtendedSar = 255, |
+}; |
+ |
// ISO 14496 part 10 |
// VUI parameters: Table E-1 "Meaning of sample aspect ratio indicator" |
static const int kTableSarWidth[] = { |
@@ -604,7 +608,7 @@ |
if (aspect_ratio_info_present_flag) { |
int aspect_ratio_idc; |
READ_BITS_OR_RETURN(8, &aspect_ratio_idc); |
- if (aspect_ratio_idc == H264SPS::kExtendedSar) { |
+ if (aspect_ratio_idc == kExtendedSar) { |
READ_BITS_OR_RETURN(16, &sps->sar_width); |
READ_BITS_OR_RETURN(16, &sps->sar_height); |
} else { |