Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Unified Diff: media/formats/mp4/mp4_stream_parser.cc

Issue 342083002: MSE: Give decode error if MDAT discard peek fails (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ceefcfa963a0b5840593f13ae52531fde824f6a2..4be859782292e77d6305516d1ca741d969227f8a 100644
--- a/media/formats/mp4/mp4_stream_parser.cc
+++ b/media/formats/mp4/mp4_stream_parser.cc
@@ -553,6 +553,8 @@ bool MP4StreamParser::ReadAndDiscardMDATsUntil(const int64 offset) {
const uint8* buf;
int size;
queue_.PeekAt(mdat_tail_, &buf, &size);
DaleCurtis 2014/06/19 00:58:20 drive-by: the above vars should be zero-initializ
wolenetz 2014/06/19 01:21:31 Good point. Done.
+ if (!buf)
acolwell GONE FROM CHROMIUM 2014/06/19 00:57:03 nit: s/!buf/size == 0/ since all the other PeekAt(
wolenetz 2014/06/19 01:21:31 Done (size <= 0)
+ return false;
FourCC type;
int box_sz;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698