| Index: media/formats/mp4/mp4_stream_parser.cc
|
| diff --git a/media/formats/mp4/mp4_stream_parser.cc b/media/formats/mp4/mp4_stream_parser.cc
|
| index dbd736df941a6542415faa81490e0bb290ec448f..d248bad35656937158f6bd57f6499791abc27f4b 100644
|
| --- a/media/formats/mp4/mp4_stream_parser.cc
|
| +++ b/media/formats/mp4/mp4_stream_parser.cc
|
| @@ -549,16 +549,13 @@
|
|
|
| std::vector<uint8_t> frame_buf(buf, buf + runs_->sample_size());
|
| if (video) {
|
| - if (runs_->video_description().video_codec == kCodecH264 ||
|
| - runs_->video_description().video_codec == kCodecHEVC) {
|
| - DCHECK(runs_->video_description().frame_bitstream_converter);
|
| - if (!runs_->video_description().frame_bitstream_converter->ConvertFrame(
|
| - &frame_buf, runs_->is_keyframe(), &subsamples)) {
|
| - MEDIA_LOG(ERROR, media_log_)
|
| - << "Failed to prepare video sample for decode";
|
| - *err = true;
|
| - return false;
|
| - }
|
| + DCHECK(runs_->video_description().frame_bitstream_converter);
|
| + if (!runs_->video_description().frame_bitstream_converter->ConvertFrame(
|
| + &frame_buf, runs_->is_keyframe(), &subsamples)) {
|
| + MEDIA_LOG(ERROR, media_log_)
|
| + << "Failed to prepare video sample for decode";
|
| + *err = true;
|
| + return false;
|
| }
|
| }
|
|
|
|
|