OSDN Git Service

Make limitations of MPEG4Writer explicit
authorJames Dong <jdong@google.com>
Tue, 12 Mar 2013 17:40:20 +0000 (10:40 -0700)
committerztenghui <ztenghui@google.com>
Thu, 14 Mar 2013 17:47:31 +0000 (10:47 -0700)
commitacc47642e0f5d962f6289e6ba687fabf68f8312b
tree89ab28931ecc78bb3c09d0c4d056c3c280a35eec
parent70369845f8250df4f6f22c336414b4df0a3ce53e
Make limitations of MPEG4Writer explicit

o No more than 2 tracks will be supported
o No more than one video and/or one audio tracks will be supported
o Only take video and/or audio track (for instance, no text tracks)
o If there is no track before start() is called, bail out.

At the same time, make sure the errors from addSource() report to
addTrack(), not to start().

Bug: 7991013

Change-Id: I1ca35aaeb75b5448d75ed2c6c10dd12ecea720ab
include/media/stagefright/MPEG4Writer.h
media/libstagefright/MPEG4Writer.cpp
media/libstagefright/MediaMuxer.cpp