| Index: content/common/gpu/media/vaapi_h264_decoder_unittest.cc
|
| diff --git a/content/common/gpu/media/vaapi_h264_decoder_unittest.cc b/content/common/gpu/media/vaapi_h264_decoder_unittest.cc
|
| index 41bbbbc2056cc0665664bfcf45fd38907f176c6a..70d8220ddbe2c494788a52294a830680c1494cfd 100644
|
| --- a/content/common/gpu/media/vaapi_h264_decoder_unittest.cc
|
| +++ b/content/common/gpu/media/vaapi_h264_decoder_unittest.cc
|
| @@ -249,8 +249,7 @@ bool VaapiH264DecoderLoop::ProcessVideoFrame(
|
| int to_write = media::VideoFrame::PlaneAllocationSize(
|
| frame->format(), i, frame->coded_size());
|
| const char* buf = reinterpret_cast<const char*>(frame->data(i));
|
| - int written = base::AppendToFile(output_file_, buf, to_write);
|
| - if (written != to_write)
|
| + if (!base::AppendToFile(output_file_, buf, to_write))
|
| return false;
|
| }
|
| return true;
|
|
|