Chromium Code Reviews| Index: media/cast/sender/vp8_encoder.cc |
| diff --git a/media/cast/sender/vp8_encoder.cc b/media/cast/sender/vp8_encoder.cc |
| index fae960e1b4fac2e77b2aa654ebeac7716f30429f..3d189cdec811bc8fd2146de9edb2d6cf78c3c080 100644 |
| --- a/media/cast/sender/vp8_encoder.cc |
| +++ b/media/cast/sender/vp8_encoder.cc |
| @@ -80,9 +80,10 @@ void Vp8Encoder::ConfigureForNewFrameSize(const gfx::Size& frame_size) { |
| << frame_size.ToString(); |
| config_.g_w = frame_size.width(); |
| config_.g_h = frame_size.height(); |
| - CHECK_EQ(vpx_codec_enc_config_set(&encoder_, &config_), VPX_CODEC_OK) |
| - << "Failed to update frame size in encoder config."; |
| - return; |
| + if (vpx_codec_enc_config_set(&encoder_, &config_) == VPX_CODEC_OK) |
| + return; |
| + DVLOG(1) << "libvp8 rejected the attempt to use a smaller frame size in " |
|
Alpha Left Google
2015/02/28 01:08:36
nit: libvpx.
miu
2015/02/28 02:10:15
Done.
|
| + "the current instance."; |
| } |
| DVLOG(1) << "Destroying/Re-Creating encoder for larger frame size: " |