| Index: media/formats/mp4/box_definitions.cc
|
| diff --git a/media/formats/mp4/box_definitions.cc b/media/formats/mp4/box_definitions.cc
|
| index 1d758a9e33ab09612620f148e48910ae5e64e8e3..8c6728d5c6d8c38ddfe621c45c07e4ea796fcbe2 100644
|
| --- a/media/formats/mp4/box_definitions.cc
|
| +++ b/media/formats/mp4/box_definitions.cc
|
| @@ -518,8 +518,13 @@ bool VideoSampleEntry::Parse(BoxReader* reader) {
|
| }
|
| }
|
|
|
| - if (IsFormatValid())
|
| - RCHECK(reader->ReadChild(&avcc));
|
| + if (IsFormatValid()) {
|
| + scoped_ptr<AVCDecoderConfigurationRecord> avcConfig(
|
| + new AVCDecoderConfigurationRecord());
|
| + RCHECK(reader->ReadChild(avcConfig.get()));
|
| + frame_bitstream_converter = make_scoped_refptr(
|
| + new AVCBitstreamConverter(avcConfig.Pass()));
|
| + }
|
|
|
| return true;
|
| }
|
|
|