| Index: content/common/gpu/media/gpu_jpeg_decode_accelerator.cc
|
| diff --git a/content/common/gpu/media/gpu_jpeg_decode_accelerator.cc b/content/common/gpu/media/gpu_jpeg_decode_accelerator.cc
|
| index 4b7b00c138e6b72a064051020aea506b9e435fa6..ba0bd94dfd8a0ed6007cbeaa3bacf47f70df02ca 100644
|
| --- a/content/common/gpu/media/gpu_jpeg_decode_accelerator.cc
|
| +++ b/content/common/gpu/media/gpu_jpeg_decode_accelerator.cc
|
| @@ -41,12 +41,6 @@ void DecodeFinished(scoped_ptr<base::SharedMemory> shm) {
|
| }
|
|
|
| bool VerifyDecodeParams(const AcceleratedJpegDecoderMsg_Decode_Params& params) {
|
| - if (params.input_buffer_id < 0) {
|
| - LOG(ERROR) << "BitstreamBuffer id " << params.input_buffer_id
|
| - << " out of range";
|
| - return false;
|
| - }
|
| -
|
| const int kJpegMaxDimension = UINT16_MAX;
|
| if (params.coded_size.IsEmpty() ||
|
| params.coded_size.width() > kJpegMaxDimension ||
|
| @@ -55,11 +49,6 @@ bool VerifyDecodeParams(const AcceleratedJpegDecoderMsg_Decode_Params& params) {
|
| return false;
|
| }
|
|
|
| - if (!base::SharedMemory::IsHandleValid(params.input_buffer_handle)) {
|
| - LOG(ERROR) << "invalid input_buffer_handle";
|
| - return false;
|
| - }
|
| -
|
| if (!base::SharedMemory::IsHandleValid(params.output_video_frame_handle)) {
|
| LOG(ERROR) << "invalid output_video_frame_handle";
|
| return false;
|
|
|