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

Unified Diff: media/filters/ffmpeg_audio_decoder.cc

Issue 335273002: Fix seeking when the start time is non-zero. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments. Created 6 years, 6 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 | « media/filters/chunk_demuxer.cc ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_audio_decoder.cc
diff --git a/media/filters/ffmpeg_audio_decoder.cc b/media/filters/ffmpeg_audio_decoder.cc
index b7e5459df0dc6511945c6df3e3b34ac25cb0a8b8..51b02c2d214aface2edf18c53c79562bd82f0692 100644
--- a/media/filters/ffmpeg_audio_decoder.cc
+++ b/media/filters/ffmpeg_audio_decoder.cc
@@ -249,16 +249,6 @@ void FFmpegAudioDecoder::DecodeBuffer(
return;
}
- if (!buffer->end_of_stream() && !discard_helper_->initialized() &&
- codec_context_->codec_id == AV_CODEC_ID_VORBIS &&
- buffer->timestamp() < base::TimeDelta()) {
- // Dropping frames for negative timestamps as outlined in section A.2
- // in the Vorbis spec. http://xiph.org/vorbis/doc/Vorbis_I_spec.html
- const int discard_frames =
- discard_helper_->TimeDeltaToFrames(-buffer->timestamp());
- discard_helper_->Reset(discard_frames);
- }
-
if (!FFmpegDecode(buffer)) {
state_ = kError;
decode_cb.Run(kDecodeError);
« no previous file with comments | « media/filters/chunk_demuxer.cc ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698