Fix use of scaler in MediaCodecVideoEncoder
This bug fixes an issue introduced in https://codereview.webrtc.org/1396073003/ BUG=webrtc:5067 TEST= set new_bit_rate = 200 in MediaCodecVideoEncoder::SetRatesOnCodecThread and compile and run ApprtDemo R=magjed@webrtc.org Review URL: https://codereview.webrtc.org/1401943002 . Cr-Commit-Position: refs/heads/master@{#10263}
This commit is contained in:
parent
1ac561447e
commit
ec93628e75
@ -543,7 +543,7 @@ int32_t MediaCodecVideoEncoder::EncodeOnCodecThread(
|
|||||||
const VideoFrame& input_frame =
|
const VideoFrame& input_frame =
|
||||||
scale_ ? quality_scaler_.GetScaledFrame(frame) : frame;
|
scale_ ? quality_scaler_.GetScaledFrame(frame) : frame;
|
||||||
|
|
||||||
if (!MaybeReconfigureEncoderOnCodecThread(frame)) {
|
if (!MaybeReconfigureEncoderOnCodecThread(input_frame)) {
|
||||||
ALOGE << "Failed to reconfigure encoder.";
|
ALOGE << "Failed to reconfigure encoder.";
|
||||||
return WEBRTC_VIDEO_CODEC_ERROR;
|
return WEBRTC_VIDEO_CODEC_ERROR;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user