media: update MediaCodec/Info/List/Format APIs based on review comments

Bug: 17059255
Change-Id: Ifbba2a0799e7db5ae48190ba6b1e4ba13fffa167
This commit is contained in:
Lajos Molnar
2014-08-22 15:51:40 -07:00
parent e193455ee2
commit 217474682a
6 changed files with 1668 additions and 1620 deletions

View File

@@ -665,7 +665,7 @@ final public class MediaCodec {
* Thrown when an internal codec error occurs.
*/
public final static class CodecException extends IllegalStateException {
public CodecException(int errorCode, int actionCode, String detailMessage) {
CodecException(int errorCode, int actionCode, String detailMessage) {
super(detailMessage);
mErrorCode = errorCode;
mActionCode = actionCode;
@@ -1729,7 +1729,7 @@ final public class MediaCodec {
if (cropRect != null) {
cropRect.offset(-xOffset, -yOffset);
}
mCropRect = cropRect;
setCropRect(cropRect);
// save offsets and info
mXOffset = xOffset;