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

Unified Diff: media/formats/mp2t/es_parser_adts.cc

Issue 646673002: Skip audio frames with unknown timestamp in MPEG2TS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/skip/skipping/ Created 6 years, 2 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
« no previous file with comments | « no previous file | media/formats/mp2t/es_parser_adts_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp2t/es_parser_adts.cc
diff --git a/media/formats/mp2t/es_parser_adts.cc b/media/formats/mp2t/es_parser_adts.cc
index bb9433220cce02dd3838b419eb2674d88e3e8caf..6bae0c78a90458fd5265085c02cdfe9b98de662d 100644
--- a/media/formats/mp2t/es_parser_adts.cc
+++ b/media/formats/mp2t/es_parser_adts.cc
@@ -140,8 +140,9 @@ bool EsParserAdts::ParseFromEsQueue() {
audio_timestamp_helper_->SetBaseTimestamp(current_timing_desc.pts);
if (audio_timestamp_helper_->base_timestamp() == kNoTimestamp()) {
- DVLOG(1) << "Audio frame with unknown timestamp";
- return false;
+ DVLOG(1) << "Skipping audio frame with unknown timestamp";
+ SkipAdtsFrame(adts_frame);
+ continue;
}
base::TimeDelta current_pts = audio_timestamp_helper_->GetTimestamp();
base::TimeDelta frame_duration =
« no previous file with comments | « no previous file | media/formats/mp2t/es_parser_adts_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698