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

Unified Diff: media/filters/ffmpeg_demuxer.h

Issue 1260193005: Fix incorrect opus seek preroll and flaky pre-skip removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify Created 5 years, 5 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/filters/ffmpeg_demuxer.h
diff --git a/media/filters/ffmpeg_demuxer.h b/media/filters/ffmpeg_demuxer.h
index 98ee3b2844aa4ae9c12b0719a18ee24a99be8658..f356f3b32358dfc672bf68759cf0b0cf549c28c5 100644
--- a/media/filters/ffmpeg_demuxer.h
+++ b/media/filters/ffmpeg_demuxer.h
@@ -77,12 +77,12 @@ class FFmpegDemuxerStream : public DemuxerStream {
base::TimeDelta duration() const { return duration_; }
- // Enables fixes for ogg files with negative timestamps. For AUDIO streams,
- // all packets with negative timestamps will be marked for post-decode
- // discard. For all other stream types, if FFmpegDemuxer::start_time() is
- // negative, it will not be used to shift timestamps during EnqueuePacket().
- void enable_negative_timestamp_fixups_for_ogg() {
- fixup_negative_ogg_timestamps_ = true;
+ // Enables fixes for files with negative timestamps. For AUDIO streams, all
+ // packets with negative timestamps will be marked for post-decode discard.
+ // For all other stream types, if FFmpegDemuxer::start_time() is negative, it
+ // will not be used to shift timestamps during EnqueuePacket().
+ void enable_negative_timestamp_fixups() {
+ fixup_negative_timestamps_ = true;
}
// DemuxerStream implementation.
@@ -155,7 +155,7 @@ class FFmpegDemuxerStream : public DemuxerStream {
#endif
std::string encryption_key_id_;
- bool fixup_negative_ogg_timestamps_;
+ bool fixup_negative_timestamps_;
DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxerStream);
};

Powered by Google App Engine
This is Rietveld 408576698