Loading media/libstagefright/ACodec.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -4322,9 +4322,14 @@ status_t ACodec::setupAVCEncoderParameters(const sp<AMessage> &msg) { h264type.bUseHadamard = OMX_TRUE; h264type.nRefFrames = 2; h264type.nBFrames = mLatency == 0 ? 1 : std::min(1U, mLatency - 1); // disable B-frames until MPEG4Writer can guarantee finalizing files with B-frames h264type.nRefFrames = 1; h264type.nBFrames = 0; h264type.nPFrames = setPFramesSpacing(iFrameInterval, frameRate, h264type.nBFrames); h264type.nAllowedPictureTypes = OMX_VIDEO_PictureTypeI | OMX_VIDEO_PictureTypeP | OMX_VIDEO_PictureTypeB; OMX_VIDEO_PictureTypeI | OMX_VIDEO_PictureTypeP; h264type.nRefIdx10ActiveMinus1 = 0; h264type.nRefIdx11ActiveMinus1 = 0; h264type.bEntropyCodingCABAC = OMX_TRUE; Loading Loading
media/libstagefright/ACodec.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -4322,9 +4322,14 @@ status_t ACodec::setupAVCEncoderParameters(const sp<AMessage> &msg) { h264type.bUseHadamard = OMX_TRUE; h264type.nRefFrames = 2; h264type.nBFrames = mLatency == 0 ? 1 : std::min(1U, mLatency - 1); // disable B-frames until MPEG4Writer can guarantee finalizing files with B-frames h264type.nRefFrames = 1; h264type.nBFrames = 0; h264type.nPFrames = setPFramesSpacing(iFrameInterval, frameRate, h264type.nBFrames); h264type.nAllowedPictureTypes = OMX_VIDEO_PictureTypeI | OMX_VIDEO_PictureTypeP | OMX_VIDEO_PictureTypeB; OMX_VIDEO_PictureTypeI | OMX_VIDEO_PictureTypeP; h264type.nRefIdx10ActiveMinus1 = 0; h264type.nRefIdx11ActiveMinus1 = 0; h264type.bEntropyCodingCABAC = OMX_TRUE; Loading