public static List<ByteBuffer> savePPS(List<PictureParameterSet> initPPS) {
        List<ByteBuffer> serialPps = new ArrayList<ByteBuffer>();
        for (PictureParameterSet pps : initPPS) {
            ByteBuffer bb1 = ByteBuffer.allocate(512);
            pps.write(bb1);
            bb1.flip();
            H264Utils.escapeNALinplace(bb1);
            serialPps.add(bb1);
        }
        return serialPps;
    }
public static List < ByteBuffer > savePPS ( List < PictureParameterSet > initPPS ) { List < ByteBuffer > serialPps = new ArrayList < ByteBuffer > ( ) ; for ( PictureParameterSet pps : initPPS ) { ByteBuffer bb1 = ByteBuffer . allocate ( 512 ) ; pps . write ( bb1 ) ; bb1 . flip ( ) ; H264Utils . escapeNALinplace ( bb1 ) ; serialPps . add ( bb1 ) ; } return serialPps ; }
@param initPPS
@return