Index: media/base/stream_parser_buffer.cc |
diff --git a/media/base/stream_parser_buffer.cc b/media/base/stream_parser_buffer.cc |
index 13e649e8595df8b152da7d51f159a75987886490..18143829d5c2ca9672bc339c2cd667a38a365dcd 100644 |
--- a/media/base/stream_parser_buffer.cc |
+++ b/media/base/stream_parser_buffer.cc |
@@ -35,7 +35,9 @@ StreamParserBuffer::StreamParserBuffer(const uint8* data, int data_size, |
is_keyframe_(is_keyframe), |
decode_timestamp_(kNoTimestamp()), |
config_id_(kInvalidConfigId) { |
- SetDuration(kNoTimestamp()); |
+ if (data) { |
+ SetDuration(kNoTimestamp()); |
scherkus (not reviewing)
2013/01/26 00:14:44
I wonder if kNoTimestamp() should be the default v
xhwang
2013/01/28 16:35:20
Sounds good to me. But nothing says the default sh
scherkus (not reviewing)
2013/01/28 18:28:37
I'll add a TODO -- I *think* the reason why the ct
|
+ } |
} |
StreamParserBuffer::~StreamParserBuffer() { |