Skip to content

Commit

Permalink
omxcodec: added buffersize logic back in
Browse files Browse the repository at this point in the history
got lost with merge of 1d73f2b

Change-Id: I0a185dd1b14d0ced4d96b0d8cc1515b7ba18abea
  • Loading branch information
codeworkx authored and Faryaab committed Apr 7, 2012
1 parent 130f973 commit 0075195
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions media/libstagefright/OMXCodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1498,6 +1498,9 @@ status_t OMXCodec::setVideoOutputFormat(
const size_t X = 64 * 8 * 1024; // const size_t X = 64 * 1024;
#else
const size_t X = 64 * 1024;
if (def.nBufferSize < X) {
def.nBufferSize = X;
}
#endif

CHECK_EQ((int)def.eDomain, (int)OMX_PortDomainVideo);
Expand Down

0 comments on commit 0075195

Please sign in to comment.