Don't use the |codec_settings| parameter in VP9DecoderImpl::InitDecode.
Bug: webrtc:9106 Change-Id: I3d3f38faa0269a01bfb254a9f24839fbcf959463 Reviewed-on: https://webrtc-review.googlesource.com/66741 Reviewed-by: Stefan Holmer <stefan@webrtc.org> Commit-Queue: Philip Eliasson <philipel@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22728}
This commit is contained in:
@ -882,9 +882,7 @@ VP9DecoderImpl::VP9DecoderImpl()
|
||||
: decode_complete_callback_(nullptr),
|
||||
inited_(false),
|
||||
decoder_(nullptr),
|
||||
key_frame_required_(true) {
|
||||
memset(&codec_, 0, sizeof(codec_));
|
||||
}
|
||||
key_frame_required_(true) {}
|
||||
|
||||
VP9DecoderImpl::~VP9DecoderImpl() {
|
||||
inited_ = true; // in order to do the actual release
|
||||
@ -900,9 +898,6 @@ VP9DecoderImpl::~VP9DecoderImpl() {
|
||||
}
|
||||
|
||||
int VP9DecoderImpl::InitDecode(const VideoCodec* inst, int number_of_cores) {
|
||||
if (inst == nullptr) {
|
||||
return WEBRTC_VIDEO_CODEC_ERR_PARAMETER;
|
||||
}
|
||||
int ret_val = Release();
|
||||
if (ret_val < 0) {
|
||||
return ret_val;
|
||||
@ -918,10 +913,6 @@ int VP9DecoderImpl::InitDecode(const VideoCodec* inst, int number_of_cores) {
|
||||
if (vpx_codec_dec_init(decoder_, vpx_codec_vp9_dx(), &cfg, flags)) {
|
||||
return WEBRTC_VIDEO_CODEC_MEMORY;
|
||||
}
|
||||
if (&codec_ != inst) {
|
||||
// Save VideoCodec instance for later; mainly for duplicating the decoder.
|
||||
codec_ = *inst;
|
||||
}
|
||||
|
||||
if (!frame_buffer_pool_.InitializeVpxUsePool(decoder_)) {
|
||||
return WEBRTC_VIDEO_CODEC_MEMORY;
|
||||
|
||||
@ -163,7 +163,6 @@ class VP9DecoderImpl : public VP9Decoder {
|
||||
DecodedImageCallback* decode_complete_callback_;
|
||||
bool inited_;
|
||||
vpx_codec_ctx_t* decoder_;
|
||||
VideoCodec codec_;
|
||||
bool key_frame_required_;
|
||||
};
|
||||
} // namespace webrtc
|
||||
|
||||
Reference in New Issue
Block a user