Change to allow receiving PPS before SPS.

Change-Id: I9c5a62a9b8948420cd45be39805a60db128964ac
This commit is contained in:
Thomas Inskip 2014-07-01 16:15:59 -07:00 committed by Gerrit Code Review
parent 301f8c134d
commit 72b6988516
1 changed files with 7 additions and 3 deletions

View File

@ -209,9 +209,13 @@ bool EsParserH264::ParseInternal() {
case H264NALU::kPPS: { case H264NALU::kPPS: {
DVLOG(LOG_LEVEL_ES) << "NALU: PPS"; DVLOG(LOG_LEVEL_ES) << "NALU: PPS";
int pps_id; int pps_id;
if (h264_parser_->ParsePPS(&pps_id) != H264Parser::kOk) if (h264_parser_->ParsePPS(&pps_id) != H264Parser::kOk) {
return false; // Allow PPS parsing to fail if waiting for SPS.
decoder_config_check_pending_ = true; if (last_video_decoder_config_)
return false;
} else {
decoder_config_check_pending_ = true;
}
break; break;
} }
case H264NALU::kIDRSlice: case H264NALU::kIDRSlice: