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

Unified Diff: media/mp2t/es_parser_h264.h

Issue 136703005: Return an error on Multiple AUs in a PES. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Documented return value of EmitFrameIfNeeded Created 6 years, 11 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 | media/mp2t/es_parser_h264.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mp2t/es_parser_h264.h
diff --git a/media/mp2t/es_parser_h264.h b/media/mp2t/es_parser_h264.h
index 5cb247e89617ff90e9b2e0a702bb7c03f63f1cbd..3e3d31cc9d71f5b797b7e46eb2009db6f4bf7257 100644
--- a/media/mp2t/es_parser_h264.h
+++ b/media/mp2t/es_parser_h264.h
@@ -55,7 +55,8 @@ class EsParserH264 : public EsParser {
bool ParseInternal();
// Emit a frame if a frame has been started earlier.
- void EmitFrameIfNeeded(int next_aud_pos);
+ // Returns true if successful, false if no PTS is available for the frame.
+ bool EmitFrameIfNeeded(int next_aud_pos);
// Start a new frame.
// Note: if aud_pos < 0, clear the current frame.
« no previous file with comments | « no previous file | media/mp2t/es_parser_h264.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698