summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/FFMPEGSoftCodec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'media/libstagefright/FFMPEGSoftCodec.cpp')
-rw-r--r--media/libstagefright/FFMPEGSoftCodec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/FFMPEGSoftCodec.cpp b/media/libstagefright/FFMPEGSoftCodec.cpp
index 3e51322..101d765 100644
--- a/media/libstagefright/FFMPEGSoftCodec.cpp
+++ b/media/libstagefright/FFMPEGSoftCodec.cpp
@@ -355,11 +355,11 @@ status_t FFMPEGSoftCodec::setVideoFormat(
return err;
}
+#ifdef QCOM_HARDWARE
status_t FFMPEGSoftCodec::setQCDIVXFormat(
const sp<AMessage> &msg, const char* mime, sp<IOMX> OMXhandle,
IOMX::node_id nodeID, int port_index) {
status_t err = OK;
-#ifdef QCOM_HARDWARE
if (!strcasecmp(MEDIA_MIMETYPE_VIDEO_DIVX, mime) ||
!strcasecmp(MEDIA_MIMETYPE_VIDEO_DIVX4, mime) ||
!strcasecmp(MEDIA_MIMETYPE_VIDEO_DIVX311, mime)) {
@@ -391,9 +391,9 @@ status_t FFMPEGSoftCodec::setQCDIVXFormat(
(OMX_INDEXTYPE)OMX_QcomIndexParamVideoDivx,
&paramDivX, sizeof(paramDivX));
}
-#endif
return err;
}
+#endif
status_t FFMPEGSoftCodec::getVideoPortFormat(OMX_U32 portIndex, int coding,
sp<AMessage> &notify, sp<IOMX> OMXHandle, IOMX::node_id nodeId) {