DescriptionFix muxed MP4 parsing so it won't crash on partial media segment appends.
Partial appends could cause the MP4StreamParser to emit buffers in
non-monotonically increasing timestamp order because of how we process
trun boxes. This patch makes sure that processing of trun boxes is
deferred until we have all the sample & aux_info data before emitting
samples. This prevents the parser from emitting samples in such a way
that will break downstream code. This is a minimal impact fix to
avoid bad behavior at the expense of buffering more data.
BUG=None
TEST=All MP4StreamParserTests that do partial appends now verify the fix.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278650
Patch Set 1 #Patch Set 2 : Make ChromeOS compiler happy #
Total comments: 23
Patch Set 3 : Address CR comments. #Patch Set 4 : Fix compiler error and test #Patch Set 5 : Fix run skipping bug. #
Messages
Total messages: 7 (0 generated)
|