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

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

Issue 646673002: Skip audio frames with unknown timestamp in MPEG2TS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed also mpeg1 parser and updated unit tests 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
Index: media/formats/mp2t/es_parser_mpeg1audio.cc
diff --git a/media/formats/mp2t/es_parser_mpeg1audio.cc b/media/formats/mp2t/es_parser_mpeg1audio.cc
index 46729b0918240336274ea30317596fbd2d93481f..0e624dd387904998bcdc872bef0132ada770899e 100644
--- a/media/formats/mp2t/es_parser_mpeg1audio.cc
+++ b/media/formats/mp2t/es_parser_mpeg1audio.cc
@@ -64,8 +64,9 @@ bool EsParserMpeg1Audio::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) << "Skip audio frame with unknown timestamp";
+ SkipMpeg1AudioFrame(mpeg1audio_frame);
+ continue;
}
base::TimeDelta current_pts = audio_timestamp_helper_->GetTimestamp();
base::TimeDelta frame_duration =

Powered by Google App Engine
This is Rietveld 408576698