Browse files

Fix the encoder

Change-Id: I929c769b24d0b891487faf4f0d3c9fa66e04eeef
  • Loading branch information...
1 parent 862ec2f commit fb39c02cfbda4232a27d2044379f906c692f4481 @WinSuk committed Nov 14, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 media/libstagefright/OMXCodec.cpp
View
6 media/libstagefright/OMXCodec.cpp
@@ -3741,7 +3741,11 @@ bool OMXCodec::drainInputBuffer(BufferInfo *info) {
status_t err = mOMX->getParameter(mNode, OMX_IndexParamPortDefinition,
&def, sizeof(def));
- CHECK_EQ(err, (status_t)OK);
+#ifdef QCOM_LEGACY_OMX
+ // Don't run this check with the legacy encoder
+ if (strncmp(mComponentName, "OMX.qcom.video.encoder.", 23))
+#endif
+ CHECK_EQ(err, (status_t)OK);
if (def.eDomain == OMX_PortDomainVideo) {
OMX_VIDEO_PORTDEFINITIONTYPE *videoDef = &def.format.video;

0 comments on commit fb39c02

Please sign in to comment.