summaryrefslogtreecommitdiffstats
path: root/media/ffmpeg
diff options
context:
space:
mode:
authorvigneshv@chromium.org <vigneshv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-06 05:09:07 +0000
committervigneshv@chromium.org <vigneshv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-06 05:09:07 +0000
commit5e3484fcaf2acc8f3cf44db4fbb9a75596440d04 (patch)
tree6f767188aec2bf08f5e8b7814c9100095329b59f /media/ffmpeg
parent0026387d76bcab8405a73038c5734b05f0f786fe (diff)
downloadchromium_src-5e3484fcaf2acc8f3cf44db4fbb9a75596440d04.zip
chromium_src-5e3484fcaf2acc8f3cf44db4fbb9a75596440d04.tar.gz
chromium_src-5e3484fcaf2acc8f3cf44db4fbb9a75596440d04.tar.bz2
media: Opus support for WebM in Media Source
Matroska's specification of Opus has been standardized here: http://wiki.xiph.org/MatroskaOpus. This CL adds support for the new Matroska elements related to Opus and enables Opus playback in WebM files through Media Source API. It also adds support for end trimming. This is a first CL in a sequence of CLs that will attempt to add various features towards fully functional working of Opus in WebM (both media source and video tag). BUG= Review URL: https://chromiumcodereview.appspot.com/23014009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221574 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/ffmpeg')
-rw-r--r--media/ffmpeg/ffmpeg_common.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/media/ffmpeg/ffmpeg_common.cc b/media/ffmpeg/ffmpeg_common.cc
index 9693bbb..72b3125 100644
--- a/media/ffmpeg/ffmpeg_common.cc
+++ b/media/ffmpeg/ffmpeg_common.cc
@@ -291,7 +291,9 @@ static void AVCodecContextToAudioDecoderConfig(
codec_context->extradata,
codec_context->extradata_size,
is_encrypted,
- record_stats);
+ record_stats,
+ base::TimeDelta(),
+ base::TimeDelta());
if (codec != kCodecOpus) {
DCHECK_EQ(av_get_bytes_per_sample(codec_context->sample_fmt) * 8,
config->bits_per_channel());