Ignore:
Timestamp:
Sep 27, 2016 3:12:13 AM (8 years ago)
Author:
nanang
Message:

Misc (re #1945): Fixed warning in OpenH264 encoder "ParamValidationExt?(), slice mode = SM_SIZELIMITED_SLICE..." (thanks Carlos Dom for the report).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/openh264.cpp

    r5405 r5440  
    509509                                             SM_SINGLE_SLICE :  
    510510                                             SM_SIZELIMITED_SLICE); 
    511     elayer_ctx.sSliceArgument.uiSliceSizeConstraint = param->enc_mtu; 
     511 
     512    /* uiSliceSizeConstraint = uiMaxNalSize - NAL_HEADER_ADD_0X30BYTES */ 
     513    elayer_ctx.sSliceArgument.uiSliceSizeConstraint = param->enc_mtu - 50; 
    512514    elayer_ctx.sSliceArgument.uiSliceNum      = 1; 
    513515    elayer_ctx.sSliceArgument.uiSliceMbNum[0] = 960; 
Note: See TracChangeset for help on using the changeset viewer.