mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 709721 - Part 2: Access vpx_codec_vp8_dx_algo through the function accessor to make things work cross-modules. r=cpearce
This commit is contained in:
parent
34ae9a22e5
commit
16031a25e3
@ -161,7 +161,7 @@ nsWebMReader::~nsWebMReader()
|
||||
|
||||
nsresult nsWebMReader::Init(nsBuiltinDecoderReader* aCloneDonor)
|
||||
{
|
||||
if (vpx_codec_dec_init(&mVP8, &vpx_codec_vp8_dx_algo, NULL, 0)) {
|
||||
if (vpx_codec_dec_init(&mVP8, vpx_codec_vp8_dx(), NULL, 0)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
@ -669,7 +669,7 @@ bool nsWebMReader::DecodeVideoFrame(bool &aKeyframeSkip,
|
||||
vpx_codec_stream_info_t si;
|
||||
memset(&si, 0, sizeof(si));
|
||||
si.sz = sizeof(si);
|
||||
vpx_codec_peek_stream_info(&vpx_codec_vp8_dx_algo, data, length, &si);
|
||||
vpx_codec_peek_stream_info(vpx_codec_vp8_dx(), data, length, &si);
|
||||
if (aKeyframeSkip && (!si.is_kf || tstamp_usecs < aTimeThreshold)) {
|
||||
// Skipping to next keyframe...
|
||||
parsed++; // Assume 1 frame per chunk.
|
||||
|
@ -76,4 +76,4 @@ vpx_codec_decode
|
||||
vpx_codec_destroy
|
||||
vpx_codec_get_frame
|
||||
vpx_codec_peek_stream_info
|
||||
vpx_codec_vp8_dx_algo
|
||||
vpx_codec_vp8_dx
|
||||
|
Loading…
Reference in New Issue
Block a user