Handle IOException from MediaCodec factory methods
Bug: 11364276 Change-Id: I930f37e8c2cba77e1da3d6a6878186182282b51e Signed-off-by: Andy Hung <hunga@google.com>
This commit is contained in:
@@ -499,7 +499,8 @@ class MediaCodecView extends SurfaceView
|
||||
}
|
||||
|
||||
private void addTrack(
|
||||
int trackIndex, MediaFormat format, boolean encrypted) {
|
||||
int trackIndex, MediaFormat format, boolean encrypted)
|
||||
throws IOException {
|
||||
String mime = format.getString(MediaFormat.KEY_MIME);
|
||||
|
||||
boolean isVideo = mime.startsWith("video/");
|
||||
|
||||
Reference in New Issue
Block a user