diff options
author | Shailendra <shailendray@google.com> | 2011-06-22 12:08:22 -0700 |
---|---|---|
committer | Shailendra <shailendray@google.com> | 2011-06-22 12:15:56 -0700 |
commit | d7ed5992634596a53f32f66277de6d287ffb752f (patch) | |
tree | bce4c3bd3bdb4a33eec300ce13935f3f9a76f28b /media | |
parent | 0f5d8441ef3ee88855df71b15d81f4c14f12d63d (diff) | |
download | frameworks_base-d7ed5992634596a53f32f66277de6d287ffb752f.zip frameworks_base-d7ed5992634596a53f32f66277de6d287ffb752f.tar.gz frameworks_base-d7ed5992634596a53f32f66277de6d287ffb752f.tar.bz2 |
Fix for kenBurn Effect for PNG image is crashing (4861071 )
Change-Id: I4b9905ca862a1f0eac0bed4c7f021e93f79ea592
Diffstat (limited to 'media')
-rwxr-xr-x | media/jni/mediaeditor/VideoEditorClasses.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/media/jni/mediaeditor/VideoEditorClasses.cpp b/media/jni/mediaeditor/VideoEditorClasses.cpp index 5696433..d43a562 100755 --- a/media/jni/mediaeditor/VideoEditorClasses.cpp +++ b/media/jni/mediaeditor/VideoEditorClasses.cpp @@ -144,6 +144,7 @@ VIDEOEDIT_JAVA_DEFINE_CONSTANTS(ClipType) VIDEOEDIT_JAVA_CONSTANT_INIT("MP3", M4VIDEOEDITING_kFileType_MP3), VIDEOEDIT_JAVA_CONSTANT_INIT("PCM", M4VIDEOEDITING_kFileType_PCM), VIDEOEDIT_JAVA_CONSTANT_INIT("JPG", M4VIDEOEDITING_kFileType_JPG), + VIDEOEDIT_JAVA_CONSTANT_INIT("PNG", M4VIDEOEDITING_kFileType_PNG), VIDEOEDIT_JAVA_CONSTANT_INIT("M4V", M4VIDEOEDITING_kFileType_M4V), VIDEOEDIT_JAVA_CONSTANT_INIT("UNSUPPORTED", M4VIDEOEDITING_kFileType_Unsupported) }; @@ -1394,8 +1395,8 @@ videoEditClasses_getClipSettings( pSettings->FileType = (M4VIDEOEDITING_FileType)videoEditJava_getClipTypeJavaToC( &converted, pEnv->GetIntField(object, fieldIds.fileType)); - if ( pSettings->FileType == M4VIDEOEDITING_kFileType_JPG) - { + if (( pSettings->FileType == M4VIDEOEDITING_kFileType_JPG) || + ( pSettings->FileType == M4VIDEOEDITING_kFileType_PNG)) { pSettings->FileType = M4VIDEOEDITING_kFileType_ARGB8888; } |