diff --git a/modules/video_coding/codecs/h264/h264_decoder_impl.cc b/modules/video_coding/codecs/h264/h264_decoder_impl.cc index 5f6b0c9765..f058e70bd9 100644 --- a/modules/video_coding/codecs/h264/h264_decoder_impl.cc +++ b/modules/video_coding/codecs/h264/h264_decoder_impl.cc @@ -377,12 +377,10 @@ int32_t H264DecoderImpl::Decode(const EncodedImage& input_image, video_frame->rotation()); // TODO(nisse): Timestamp and rotation are all zero here. Change decoder // interface to pass a VideoFrameBuffer instead of a VideoFrame? - decoded_image_callback_->Decoded(cropped_frame, rtc::Optional(), - qp); + decoded_image_callback_->Decoded(cropped_frame, rtc::nullopt, qp); } else { // Return decoded frame. - decoded_image_callback_->Decoded(*video_frame, rtc::Optional(), - qp); + decoded_image_callback_->Decoded(*video_frame, rtc::nullopt, qp); } // Stop referencing it, possibly freeing |video_frame|. av_frame_unref(av_frame_.get());